C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 8th, 2007, 12:46 PM
Gjbara Gjbara is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 Gjbara User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 59 sec
Reputation Power: 0
Bloodshed Dev C++ - Trouble in Windows Vista

I'm a beginning computer science student & I'm taking an intro. to C programming course this semester.

I've been using & got comfortable with this IDE but ever since upgrading (downgrading?) to Vista I've been having trouble with it. I've searched for sulutions here and in other message boards but I seem to be having an unusual problem.

**My program compiles correctly and I get no error message, but when I try to run the program I get an error message saying "Source file not compiled".**

I've done a fresh install of Dev++ several times thinking there may have been something wrong with my installation but to no avail. I'm also having trouble installing Visual Basic ( )

Any help would be appreciated. THANKS!

Reply With Quote
  #2  
Old April 8th, 2007, 02:58 PM
jwdonahue jwdonahue is offline
Bellevue WA, USA
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2004
Location: Bellevue Washington, USA
Posts: 1,038 jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 23 h 14 m 51 sec
Reputation Power: 66
Intersting. I wonder if the new security model in Vista is interfering with your Dev++ installation? I'm only speculating here becuase no one else has jumped in yet to help you. I haven't got Dev++ isntalled on my current workstation and I do not run Vista.

Have you searched around for yourProgram.exe?

Hmm.... try to create a new project, write a really simple program, compile and run it. If that works, then you probably have some issues with the project tree layout or something. Perhaps the Dev++ installer is Vista aware and expects things to be in different places? If that doesn't work, then there may be an issue with the Dev++ installer on Vista.

Did you launch the installer as Admin? It's been a few months since I last ran tests on Vista, but I seem to recall there's a way to launch a program with elevated administrator rights. Just being logged on as administrator is no longer enough for some things. Check you event logs for any messages from the Dev++ installer.
__________________
It's not always a matter of what you can do with a language, but whether you should. [JwD]

Reply With Quote
  #3  
Old April 8th, 2007, 03:12 PM
Gjbara Gjbara is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 Gjbara User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 59 sec
Reputation Power: 0
Quote:
Originally Posted by jwdonahue
Intersting. I wonder if the new security model in Vista is interfering with your Dev++ installation? I'm only speculating here becuase no one else has jumped in yet to help you. I haven't got Dev++ isntalled on my current workstation and I do not run Vista.

Have you searched around for yourProgram.exe?

Hmm.... try to create a new project, write a really simple program, compile and run it. If that works, then you probably have some issues with the project tree layout or something. Perhaps the Dev++ installer is Vista aware and expects things to be in different places? If that doesn't work, then there may be an issue with the Dev++ installer on Vista.

Did you launch the installer as Admin? It's been a few months since I last ran tests on Vista, but I seem to recall there's a way to launch a program with elevated administrator rights. Just being logged on as administrator is no longer enough for some things. Check you event logs for any messages from the Dev++ installer.

Thanks for the reply. I did write a simple Hello, world program just to be sure that my program just isn't compiling properly due to some programming error & that still didn't work.

I do save my projects in a folder in My Documents (not in the default C:\Dev-Cpp\). That may be causing the problem.

I will try to install again & make sure I'm installing in the proper place & with enough rights.

Reply With Quote
  #4  
Old April 8th, 2007, 03:28 PM
Lux Perpetua Lux Perpetua is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Feb 2004
Location: San Francisco Bay
Posts: 1,418 Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 47 m 27 sec
Reputation Power: 334
Quote:
Originally Posted by Gjbara
Thanks for the reply. I did write a simple Hello, world program just to be sure that my program just isn't compiling properly due to some programming error & that still didn't work.

I do save my projects in a folder in My Documents (not in the default C:\Dev-Cpp\). That may be causing the problem.

I will try to install again & make sure I'm installing in the proper place & with enough rights.
You didn't answer his question. Does your .exe file exist somewhere? If it does, have you tried running it from the command line?

Reply With Quote
  #5  
Old April 8th, 2007, 06:45 PM
Gjbara Gjbara is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 Gjbara User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 59 sec
Reputation Power: 0
Quote:
Originally Posted by Lux Perpetua
You didn't answer his question. Does your .exe file exist somewhere? If it does, have you tried running it from the command line?

oh. no it doesn't exist anywhere. No executable is actually created.

Reply With Quote
  #6  
Old April 9th, 2007, 01:45 AM
salem's Avatar
salem salem is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jun 2005
Posts: 1,608 salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)salem User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 153 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Day 13 h 54 m 17 sec
Reputation Power: 276
Do a "rebuild all (ctrl-F11)"

Then choose the "Compile Log" tab at the bottom of the screen, there should be a pane showing all the commands the compiler executed.

If you right-click in the text pane, you can copy (and then paste) what actually happened. We might be able to figure something from that.

Eg
Code:
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\xxx\My Documents\code\forum\Makefile.win"
Executing  make clean
rm -f main.o  forum.exe

g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"   

g++.exe main.o  -o "forum.exe" -L"C:/Dev-Cpp/lib"  

Execution terminated
Compilation successful
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.

Reply With Quote
  #7  
Old April 9th, 2007, 03:20 AM
clifford's Avatar
clifford clifford is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 2,405 clifford User rank is Major (30000 - 40000 Reputation Level)clifford User rank is Major (30000 - 40000 Reputation Level)clifford User rank is Major (30000 - 40000 Reputation Level)clifford User rank is Major (30000 - 40000 Reputation Level)clifford User rank is Major (30000 - 40000 Reputation Level)clifford User rank is Major (30000 - 40000 Reputation Level)clifford User rank is Major (30000 - 40000 Reputation Level)clifford User rank is Major (30000 - 40000 Reputation Level)clifford User rank is Major (30000 - 40000 Reputation Level)clifford User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 5 h 9 m 22 sec
Reputation Power: 320
Issues with Vista are dealt with on the Dev-C++ user forum's "* *PLEASE READ BEFORE POSTING A QUESTION*" thread, here .

Clifford

Reply With Quote
  #8  
Old April 9th, 2007, 04:04 AM
Gjbara Gjbara is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 Gjbara User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 59 sec
Reputation Power: 0
Let's see here

Code:
Compiler: Default compiler
Compiler: Default compiler
Executing  gcc.exe...
gcc.exe "C:\Users\Ginan\Documents\_School Ish\cop3223\Programs\Program 5\retail.c" -o "C:\Users\Admin\Documents\cop3223\Programs\Program 5\retail.exe"    -I"C:\Dev-Cpp\include"   -L"C:\Dev-Cpp\lib" 
gcc.exe: installation problem, cannot exec `cc1': No such file or directory

Execution terminated
Compilation successful

Reply With Quote
  #9  
Old April 9th, 2007, 04:05 AM
Gjbara Gjbara is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 Gjbara User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 59 sec
Reputation Power: 0
Quote:
Originally Posted by clifford
Issues with Vista are dealt with on the Dev-C++ user forum's "* *PLEASE READ BEFORE POSTING A QUESTION*" thread, here .

Clifford

ok. checking it out

Reply With Quote
  #10  
Old April 9th, 2007, 05:39 AM
clifford's Avatar
clifford clifford is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 2,405 clifford User rank is Major (30000 - 40000 Reputation Level)clifford User rank is Major (30000 - 40000 Reputation Level)clifford User rank is Major (30000 - 40000 Reputation Level)clifford User rank is Major (30000 - 40000 Reputation Level)clifford User rank is Major (30000 - 40000 Reputation Level)clifford User rank is Major (30000 - 40000 Reputation Level)clifford User rank is Major (30000 - 40000 Reputation Level)clifford User rank is Major (30000 - 40000 Reputation Level)clifford User rank is Major (30000 - 40000 Reputation Level)clifford User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 5 h 9 m 22 sec
Reputation Power: 320
Quote:
Originally Posted by Gjbara
ok. checking it out
You will notice also in the "Read first" thread, that it advises against using file paths with spaces. This is very important. Not all the GNU based tools work correctly all the time with such paths.

[edit] Actually it is not just the GNU tools the Dev-C++ IDE itself has some bugs associated with spaces in project paths.

Clifford
Comments on this post
jwdonahue agrees: Excellent point! I had forgotten why I have a tools directory in the root directory of my data
drive.

Last edited by clifford : April 10th, 2007 at 05:54 AM.

Reply With Quote
  #11  
Old April 9th, 2007, 12:31 PM
requinix's Avatar
requinix requinix is offline
requinix|on hiatus
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2007
Location: Here
Posts: 2,459 requinix User rank is Major (30000 - 40000 Reputation Level)requinix User rank is Major (30000 - 40000 Reputation Level)requinix User rank is Major (30000 - 40000 Reputation Level)requinix User rank is Major (30000 - 40000 Reputation Level)requinix User rank is Major (30000 - 40000 Reputation Level)requinix User rank is Major (30000 - 40000 Reputation Level)requinix User rank is Major (30000 - 40000 Reputation Level)requinix User rank is Major (30000 - 40000 Reputation Level)requinix User rank is Major (30000 - 40000 Reputation Level)requinix User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 12279 Folding Title: Novice Folder
Time spent in forums: 1 Month 3 Weeks 6 Days 3 h 11 m 25 sec
Reputation Power: 386
Send a message via MSN to requinix
You seem to be missing the cc1.exe file (still not sure what that thing really does). Reinstalling Dev-C++ should fix it.

(Love the "Compilation successful" message...)

Reply With Quote
  #12  
Old April 9th, 2007, 12:37 PM
ZuK ZuK is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2005
Posts: 580 ZuK User rank is Second Lieutenant (5000 - 10000 Reputation Level)ZuK User rank is Second Lieutenant (5000 - 10000 Reputation Level)ZuK User rank is Second Lieutenant (5000 - 10000 Reputation Level)ZuK User rank is Second Lieutenant (5000 - 10000 Reputation Level)ZuK User rank is Second Lieutenant (5000 - 10000 Reputation Level)ZuK User rank is Second Lieutenant (5000 - 10000 Reputation Level)ZuK User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 9 h 46 m 49 sec
Reputation Power: 91
Quote:
Originally Posted by requinix
You seem to be missing the cc1.exe file (still not sure what that thing really does)

cc1 is the preprocessor.
Kurt
Comments on this post
clifford disagrees: cpp.exe is the C pre-processor cc1.exe is the C compiler, GCC calls either cc1 or cc1plus depending
on C or C++ compilation.

Reply With Quote
  #13  
Old March 7th, 2008, 02:00 PM
tcpip101 tcpip101 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 2 tcpip101 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 44 sec
Reputation Power: 0
Exclamation CC1 is there

cc1 is there. I am having the same issue. I have also re-installed several times. I am willing to bet that no one has it working on Vista yet. I played with the directories and the "cannot find cc1" error went away, now I have several other errors. Before anyone post a reply please install and test with Vista. PS. I did a full removal each time before re-installing.

Reply With Quote
  #14  
Old March 7th, 2008, 02:17 PM
sizablegrin's Avatar
sizablegrin sizablegrin is online now
Stubborn ol' L'User
Click here for more information.
 
Join Date: Jun 2005
Posts: 3,066 sizablegrin User rank is General 7th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 7th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 7th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 7th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 7th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 7th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 7th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 7th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 7th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 7th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 7th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 7th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 7th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 7th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 7th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 7th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 1 Day 14 h 27 m 9 sec
Reputation Power: 1445
Get off Dev-Cpp. I use it to reply to specific examples, but it sucks. It's an orphan. It's not much good, and no one cares, anymore. It was used for practice by aspiring geeks, but they've moved on.

You should move on, too.
__________________<