Archived

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

cleves

D3D problem

Recommended Posts

Hi all... I wrote a simple program in D3D and when i compile it he had the following problems: Linking... Main.obj : error LNK2001: unresolved external symbol _Direct3DCreate9@4 Debug/D3D tutorial.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. How can i fix it? Thanks ahead.

Share this post


Link to post
Share on other sites
Ok thanks Zern i linked d3d9.lib. It resolved my first problem but now there is something new:

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

What is the symbol_main?

I am using VC++ 6 complier.

Thanks

Share this post


Link to post
Share on other sites
I believe that is for console type applications. i.e. you selected Console instead of Win32 Application and therefore it expects an entry point "main" in one of your source files that you compile. I think you have an "INT WINAPI WinMain(...)". Just save your files, create a new project (Win32 Application) copy the files to this new directory, add them to the project and compile. Should work fine.

Share this post


Link to post
Share on other sites