954,504 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Problem compiling with Dev-C++

Hi everyone, I recently had to wipe my computer and re-install everything from scratch, including Dev-C++. When I create a Win32 application project and try to compile it, I get a "[Build Error] Error1" message in the compiler log. I know that the code doesnt have any errors in whatsoever, because this even happens when i begin projects fresh and try to compile them, I still get the same error. i have tryed re-installing it numerous times...I have tryed running Dev-C++ on my dads computer, and it seems to work fine...therefore I tryed running Dev-C++ on my computer using my dads installation over our LAN and I have the same problems again. Im running the latest version of Dev-C++, with windows XP Professional with service pack 1...anyone else ever had this problem or know how to correct it ?

bops
Posting Whiz in Training
214 posts since Aug 2005
Reputation Points: 23
Solved Threads: 5
 

Have you tried compiling directly from the terminal?

gcc filename.c -o filename.exe
<em>or</em>
g++ filename.cpp -o filename.exe
Ooble
Light Poster
44 posts since Oct 2005
Reputation Points: 12
Solved Threads: 6
 

I havent tryed that, but how would I compile a project using many resource and header files aswell as source files?

bops
Posting Whiz in Training
214 posts since Aug 2005
Reputation Points: 23
Solved Threads: 5
 

Well, header files are #included in the source files (I hope), and resource files can be compiled in too, I believe:

g++ file1.cpp file2.cpp file3.res -o filename.exe
Ooble
Light Poster
44 posts since Oct 2005
Reputation Points: 12
Solved Threads: 6
 

I have the same problem..... I have tried re-installing it at elast 5 times from 3 different versions of the program and still nothing new has happened, I have a couple of friends who are more experienced in the computer field, who are going to try and help me with sorting it out....but until then I'm in the same boat as you.... I have also posted something on a different site about this problem... If I come up with anything then i will get straight onto this site and explain the problem :)

Vzerbo
Newbie Poster
1 post since Jan 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You