dbTalk Databases Forums  

Embedded SQL and C++

comp.database.ingres comp.database.ingres


Discuss Embedded SQL and C++ in the comp.database.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark
 
Posts: n/a

Default Embedded SQL and C++ - 06-02-2011 , 07:45 AM






Hi,

I am having a problem linking C++ code with embedded SQL.

If I use the sqlca variable in multithreaded mode sqlca is defined as
a function returning a pointer to the sqlca.

In C++ we get:

extern IISQLCA *IIsqlca();
define sqlca (*(IIsqlca()))

However, with C++ programs, I get a unresolved symbol for this
function since the linker is assuming C++ linkage.

Without having to manually edit all the C++ files, is there a good
solution to this?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.