Advertisement

Can't recompile a project after closing and reopening.

Started by June 09, 2003 01:03 PM
6 comments, last by Buccii 21 years, 8 months ago
I do all the steps in setting up a project, Open a win32 app, and put all the .libs into the settings. The programs run just fine, but if I close the .cpp and reopen it later, it gets errors. The only way I have found to fix this is copy and paist all of the code into a brand new .cpp. Is there anyway to fix this, so I don''t have to make a new .cpp everytime I open my project? Any help would be great, thank you.
What IDE are you using? What, exactly, are the errors you''re getting?


How appropriate. You fight like a cow.
Advertisement
I''m pretty new to all of this, so forgive me, but I don''t know what an IDE is, but the errors I get are the same errors you would recieve for trying to run you''re app in a non win32 app, also it doesn''t remember the .libs that I added originally. I am using microsoft VC++, if that helps.
First, VC++ is a IDE. Second, is one of the Errors u get
something with "ddhelp.obj" ?
This is the error i''m getting:

LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Cool Cube.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

I don''t believe it is a code problem though, because, if I copy and paist the code into a new win32.app, the code works fine.
What type of project did you create? A Win32 Application or a Win32 Console Application?

Death of one is a tragedy, death of a million is just a statistic.
If at first you don't succeed, redefine success.
Advertisement
I''m not sure how new you are to all this, so this might sound like a stupid suggestion, but I''ll try any way:

Do you open the project file, or the cpp file?
If you restart your project by doubleclicking the .cpp file, you don''t get the project settings loaded.

Endre
Alright, thank you very much, I never thought of opening anything other then the .cpp, wow, I feel a little stupid. Anyway, thanks to you and everyone else that tried to help as well.

This topic is closed to new replies.

Advertisement