C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Intel® Graphics Performance Analyzers is a powerful tool suite for analyzing and optimizing your games, media, and graphics-intensive applications. Used by some of the best developers on the planet, Intel GPA lets you maximize your app’s performance.


Tutorials
| Forums

Download to Enter
| Contest Rules

DOWNLOAD INTEL® GPA FOR FREE

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:
  #1  
Old April 8th, 2007, 01: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, 03:58 PM
jwdonahue's Avatar
jwdonahue jwdonahue is offline
Bellevue WA, USA
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: May 2004
Location: Bellevue Washington, USA
Posts: 3,343 jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 16 h 29 m 17 sec
Reputation Power: 866
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.
__________________
My worst nightmare was a pointless infinite loop.
Work in progress; don't poke the curmudgeon!
http://www.odonahue.com/

Reply With Quote
  #3  
Old April 8th, 2007, 04: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, 04:28 PM
Lux Perpetua Lux Perpetua is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2004
Location: San Francisco Bay
Posts: 1,801 Lux Perpetua User rank is General 4th Grade (Above 100000 Reputation Level)Lux Perpetua User rank is General 4th Grade (Above 100000 Reputation Level)Lux Perpetua User rank is General 4th Grade (Above 100000 Reputation Level)Lux Perpetua User rank is General 4th Grade (Above 100000 Reputation Level)Lux Perpetua User rank is General 4th Grade (Above 100000 Reputation Level)Lux Perpetua User rank is General 4th Grade (Above 100000 Reputation Level)Lux Perpetua User rank is General 4th Grade (Above 100000 Reputation Level)Lux Perpetua User rank is General 4th Grade (Above 100000 Reputation Level)Lux Perpetua User rank is General 4th Grade (Above 100000 Reputation Level)Lux Perpetua User rank is General 4th Grade (Above 100000 Reputation Level)Lux Perpetua User rank is General 4th Grade (Above 100000 Reputation Level)Lux Perpetua User rank is General 4th Grade (Above 100000 Reputation Level)Lux Perpetua User rank is General 4th Grade (Above 100000 Reputation Level)Lux Perpetua User rank is General 4th Grade (Above 100000 Reputation Level)Lux Perpetua User rank is General 4th Grade (Above 100000 Reputation Level)Lux Perpetua User rank is General 4th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Days 13 h 40 m 7 sec
Reputation Power: 1210
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, 07: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, 02:45 AM
salem's Avatar
salem salem is offline
Contributed User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2005
Posts: 2,770 salem User rank is General 4th Grade (Above 100000 Reputation Level)salem User rank is General 4th Grade (Above 100000 Reputation Level)salem User rank is General 4th Grade (Above 100000 Reputation Level)salem User rank is General 4th Grade (Above 100000 Reputation Level)salem User rank is General 4th Grade (Above 100000 Reputation Level)salem User rank is General 4th Grade (Above 100000 Reputation Level)salem User rank is General 4th Grade (Above 100000 Reputation Level)salem User rank is General 4th Grade (Above 100000 Reputation Level)salem User rank is General 4th Grade (Above 100000 Reputation Level)salem User rank is General 4th Grade (Above 100000 Reputation Level)salem User rank is General 4th Grade (Above 100000 Reputation Level)salem User rank is General 4th Grade (Above 100000 Reputation Level)salem User rank is General 4th Grade (Above 100000 Reputation Level)salem User rank is General 4th Grade (Above 100000 Reputation Level)salem User rank is General 4th Grade (Above 100000 Reputation Level)salem User rank is General 4th Grade (Above 100000 Reputation Level)  Folding Points: 153 Folding Title: Novice Folder
Time spent in forums: 1 Month 4 Weeks 20 h 17 m 31 sec
Reputation Power: 1237
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.
If at first you don't succeed, try writing your phone number on the exam paper

Reply With Quote
  #7  
Old April 9th, 2007, 04:20 AM
clifford's Avatar
clifford clifford is offline
Contributing User
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 4,405 clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 9 h 41 m 54 sec
Reputation Power: 1719
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, 05: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, 05: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, 06:39 AM
clifford's Avatar
clifford clifford is offline
Contributing User
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 4,405 clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level)clifford User rank is General 11st Grade (Above 100000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 9 h 41 m 54 sec
Reputation Power: 1719
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 06:54 AM.

Reply With Quote
  #11  
Old April 9th, 2007, 01:31 PM
requinix's Avatar
requinix requinix is offline
Good morning!
Click here for more information.
 
Join Date: Mar 2007
Location: Washington, USA
Posts: 10,255 requinix User rank is General 99th Grade (Above 100000 Reputation Level)requinix User rank is General 99th Grade (Above 100000 Reputation Level)requinix User rank is General 99th Grade (Above 100000 Reputation Level)requinix User rank is General 99th Grade (Above 100000 Reputation Level)requinix User rank is General 99th Grade (Above 100000 Reputation Level)requinix User rank is General 99th Grade (Above 100000 Reputation Level)requinix User rank is General 99th Grade (Above 100000 Reputation Level)requinix User rank is General 99th Grade (Above 100000 Reputation Level)requinix User rank is General 99th Grade (Above 100000 Reputation Level)requinix User rank is General 99th Grade (Above 100000 Reputation Level)requinix User rank is General 99th Grade (Above 100000 Reputation Level)requinix User rank is General 99th Grade (Above 100000 Reputation Level)requinix User rank is General 99th Grade (Above 100000 Reputation Level)requinix User rank is General 99th Grade (Above 100000 Reputation Level)requinix User rank is General 99th Grade (Above 100000 Reputation Level)requinix User rank is General 99th Grade (Above 100000 Reputation Level)  Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Months 3 Weeks 6 Days 18 h 22 m 43 sec
Reputation Power: 7602
Send a message via AIM to requinix Send a message via MSN to requinix Send a message via Yahoo 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, 01: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 10 h 49 m 47 sec
Reputation Power: 95
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, 03: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, 03:17 PM
sizablegrin's Avatar
sizablegrin sizablegrin is offline
Permanently Banned
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Jun 2005
Posts: 5,959 sizablegrin User rank is General 58th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 58th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 58th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 58th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 58th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 58th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 58th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 58th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 58th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 58th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 58th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 58th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 58th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 58th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 58th Grade (Above 100000 Reputation Level)sizablegrin User rank is General 58th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 2 Days 12 h 47 m 19 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
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.

Reply With Quote
  #15  
Old March 7th, 2008, 03:32 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
Time to move on I guess

Too bad, I liked dev, do you have any suggestions for another C/C++ compiler?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Bloodshed Dev C++ - Trouble in Windows Vista


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 8 - Follow our Sitemap