Software Development Network>> Visual C++>> not add an .obj file to my project
I think it's in projects -> add to project -> files
bump! this problem has no answer, and its the only related article on google so i guess its worth the bump.
You go to project/settings menu (you can also use alt+f7 hotkey)
click in the link tab
Make sure everything is spelt correctly on "object/library modules", filenames must have whitespaces in between.
In my case the problem was i added some .lib and forgot to leave the whitespace, so instead of:
odbccp32.lib kernel32.lib user32.lib
i had:
odbccp32.libkernel32.lib user32.lib ddraw.lib dxguid.lib gdi32.lib
The compiler was trying to open a file named "odbccp32.libkernel32.lib" i guess you did the same
VS2005 doesnt have this "archaic" method of adding libraries so they dont have this problem
There is no "odbccp32.obj" file. There is only "odbccp32.lib" file and that's you need to add to your project.
Right click the project node in solution explorer, go to Linker/Input and in the Additional Dependencies fields add "odbccp32.lib".
Hmm...I haven't used VS 6.0 since 2002... hard to remember something. There was some dialog with a combo box where you could select Linker but unfortunately that's all I can remember.
And these forums are intended for VS2005 anyway...
not add an .obj file to my project
Joseph Stalin
dmouser
It doesnt work.
Rod Blackwood
bump! this problem has no answer, and its the only related article on google so i guess its worth the bump.
You go to project/settings menu (you can also use alt+f7 hotkey)
click in the link tab
Make sure everything is spelt correctly on "object/library modules", filenames must have whitespaces in between.
In my case the problem was i added some .lib and forgot to leave the whitespace, so instead of:
odbccp32.lib kernel32.lib user32.lib
i had:
odbccp32.libkernel32.lib user32.lib ddraw.lib dxguid.lib gdi32.lib
The compiler was trying to open a file named "odbccp32.libkernel32.lib" i guess you did the same
VS2005 doesnt have this "archaic" method of adding libraries so they dont have this problem
dannyg_uk
johnsontroye69
There is no "odbccp32.obj" file. There is only "odbccp32.lib" file and that's you need to add to your project.
Right click the project node in solution explorer, go to Linker/Input and in the Additional Dependencies fields add "odbccp32.lib".
sabo
pompoko
Hmm...I haven't used VS 6.0 since 2002... hard to remember something. There was some dialog with a combo box where you could select Linker but unfortunately that's all I can remember.
And these forums are intended for VS2005 anyway...
Bruce VB111480