not add an .obj file to my project

Ih,

i got this error " LINK : fatal error LNK1104: cannot open file "odbccp32.obj" compiling a code.

As you can see in google, there is no solution aparently.

In the same way that i delete lib files, how can i not add this file to my project


Answer this question

not add an .obj file to my project

  • Joseph Stalin

    Anyone who uses VS 6.0

  • dmouser


    I think it's in projects -> add to project -> files


    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

    nobody knows it

  • 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

    I think it's in projects -> add to project -> files

  • 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

    Thanks Mike, but..i cant see the Additional Dependencies, i have VS 6.0

  • not add an .obj file to my project