Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

hbkpuertorico

In Microsoft Vc++ 6.0. Does anybody know this error

This topic is 5237 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

--------------------Configuration: MOYM BETA 1_2 - Win32 Debug-------------------- Compiling... Skipping... (no relevant changes detected) main.cpp Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/MOYM BETA 1_2.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. MOYM BETA 1_2.exe - 2 error(s), 0 warning(s)

Share this post


Link to post
Share on other sites
Advertisement
Chance are you have your project set as a console project when you wanted a windows application. You can either recreate your project the right way and copy all your source files over, or you can dig around for the linker setting to get it switched over. (Should be /subsystem:windows)

Share this post


Link to post
Share on other sites
if it''s a console application, you should have as an entry point for your program, either a

void main(void)
int main(int argc, char** argv)
void main(int argc, char** argv)


if it''s a Win32 application, you should have

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);

Share this post


Link to post
Share on other sites
quote:
Original post by oliii
if it''s a console application, you should have as an entry point for your program, either a

void main(void)
int main(int argc, char** argv)
void main(int argc, char** argv)


int main(int argc, char* argv[])
int main(void)

are the only valid signatures for main.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!