Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Can't link to SQLConfigDataSource

michael_green
Beginner
125 Views

Hi All,

I'm using the following statement:

bret = SQLConfigDataSource(NULL,ODBC_CONFIG_SYS_DSN,"Oracle APXDEV driver"//char(0),"DSN=APXDEV"//char(0)//char(0))

and I know that SQLConfigDataSource is listed in odbccp32.lib, and I have that in my list of Additional Dependencies under Linker input for the project. But despite all attempts with many different settings, etc, I cannot get past:

error LNK2019: unresolved external symbol _SQLCONFIGDATASOURCE

What am I missing?

 

Many thanks in advance

Mike

 

0 Kudos
1 Reply
Arjen_Markus
Valued Contributor III
125 Views

Fortran is case-insensitive whereas C is case-sensitive (and there are other differences). You will have to provide a proper interface for this and other routines from that library, along the lines of ISO_C_BINDING (the module and the keywords).

Reply