[Openroad-users] Ingres and C in Visual Studio 8

Fabian Anderson fabian.anderson at Fintechnix.com
Mon Jun 16 09:21:04 EST 2008


Hi Colin,
	A few things, you need to make sure you have the library search
paths for ALL externally resolved references (not just the Ingres ones).
You need to pre-compile the sc code before compiling (that is why it is
called a pre-compiler).  Visual Studio has a project option for adding
compiler pre-processing.

However, your problems are probably because you are compiling as C++ and
linking to C libraries.  Let me know if you don't know how to link to C
from C++.

Cheers,
Fabian.


-----Original Message-----
From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com] On Behalf Of Colin Hay
Sent: Friday, 13 June 2008 9:40 PM
To: International OpenROAD Users
Subject: [Openroad-users] Ingres and C in Visual Studio 8

 
Two questions to the VS / C community ....

How do you get Visual Studio 8 to recognise and pre-compile ESQLC code ?

e.g. run esqlc <file>.sc THEN compile and link

Currently I'm precompiling in DOS then using VS 8 to compile the
resulting .c file
Which works fine but surely there is a better way ?



Secondly, how do you link an ESQLC program when it has compiled OK in VS
8 ?

I'm getting errors such as these when it tries to resolve EXEC SQL OPEN
....

error LNK2001: unresolved external symbol _IIcsOpen

I have C:\IngresII\ingres\lib set as an Additional Library Directory
under Linker / General properties
But that made no difference

Colin Hay
Database Administrator
Fintechnix
Level 3,
55 Clarence Street,
Sydney

colin.hay at fintechnix.com 
Phone: +61 2 8234 8276



Specialist providers of back and front office systems for the financial
services industry.
Featuring:  Fintechnix(r)
Disclaimer: 
Notice: This message contains privileged and confidential information
intended only for the use of the addressee named above. If you are not
the intended recipient of this message you are hereby notified that you
must not disseminate, copy or take any action in reliance on it.
Any views expressed in this message are those of the individual
sender,except where the sender specifically states them to be the views
of Fintechnix Pty Ltd.

________________________________________________________________
OpenROAD-Users mailing list

You can maintain your subscription here:
http://www.peerlessit.com/mailman/listinfo/openroad-users

To unsubscribe click on this link
mailto:openroad-users-unsubscribe at peerlessit.com&subject=unsubscribe

To subscribe click on this link
mailto:openroad-users-subscribe at peerlessit.com&subject=subscribe 

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Specialist providers of back and front office systems for the financial services industry.
Featuring:  Fintechnix(r)
Disclaimer: 
Notice: This message contains privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that you must not disseminate, copy or take any action in reliance on it.
Any views expressed in this message are those of the individual sender,except where the sender specifically states them to be the views of Fintechnix Pty Ltd.



More information about the Openroad-users mailing list