How to solve an unresolved external symbol error in Visual Studio project that references an Oracle C library?

46 Views Asked by At

I have a simple VS project that contains a Sample.c generated by a Pro*C compiler. This file doesn't do any thing fancy, it just try to connect to an Oracle database.

I'm getting the following error message:

unresolved external symbol _sqlcxt referenced in function _main OracleProC

enter image description here

I came a cross couple of posts and they all suggested to:

  1. To add the folder containing the .lib files under Linker-->General:-->Additional Library Directories enter image description here

  2. Specify the lib in that folder that I'm linking by going to Linker-->Input-->Additional Dependencies enter image description here

Despite having these set, I'm still getting the error message.

0

There are 0 best solutions below