Advertisement

This is going to sound really dumb.....

Started by July 19, 2000 06:06 PM
4 comments, last by caffiene addict 24 years, 5 months ago
I''m a newbiwe programmer, and I just now got VC++ 6 and I have a really stupid problem. I''m trying to get a program where I just go into directx and get back out....but I get a linker error ''unidentified symbol _main''....and I''m new to VC++ so I don''t know what I''m doing wrong. I think I put all the libs in right. (I know, stubid problem. but what do you expect from a newbie? )
Make sure you''ve started the project as a Win32 app, not a console app.


////////////////////////



//VGASteve//////////////



////////////////////////


See my projects!
Advertisement
Well, do you have a void main() or int main() in your program? Windows programs don''t have main loops like that since it is event-driven, but there is a Winmain. If you created a win32 app make sure you don''t just have a main() loop that you would find in console programs.

Masters Software
well, I did make it a win32 app, you pick that when you start the workspace, right? And I''m using the WinMain thing...
If you have the WinMain function and its set up correctly then sometimes just save your code and delete the project this will clear any compiler setting problems you minght have accidently created. Then create a new project and include libs and your saved source code plus all of the headers and recompile the new app. This works unless its a problem with your windows code. I used to get this problem all the time when I was a newb 2 years ago.

DXGP
jtecin for your info. only, Win apps do have a main() function. Its just hidden in the win32 .dll''s so you never get to see it

ECKILLER
ECKILLER

This topic is closed to new replies.

Advertisement