Skip to main content
GameDev.net gamedev.net
🔒 Locked

DirectX 10 problem

Started by alebo611 Jun 14, 2006 at 3:35 PM 3 replies 850+ views
Original Post
alebo611
alebo611
Hi! I get error LNK203: unresolved external symbol when I use the function CreateDeviceAndSwapChain. Of course I want to use the reference raster. Im useing Vista, and if I take away this command the code compiles, every other dx10 command works. Please if you have managed to compile and run on Vista using reference raster write to me :) /Alex
Demirug
Demirug
The function should be D3D10CreateDeviceAndSwapChain and you have to link with the D3D10.lib
alebo611
alebo611
About the linking:

I HAVE chosen the directory where that file is in
Tools->options->Project&Solutions->VC++Directories
under Executable files.

This doesnt seem to work so is there another way?
alebo611
alebo611
ok I got it,
#pragma comment(lib, "d3d10"), right?
Sr_Guapo
Sr_Guapo
Quote:
Original post by alebo611
About the linking:

I HAVE chosen the directory where that file is in
Tools->options->Project&Solutions->VC++Directories
under Executable files.

This doesnt seem to work so is there another way?


put in in the library files list, not the executable list.
Sean Henley [C++ Tutor]Rensselaer Polytechnic Institute

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.