comp.lang.ada
 help / color / mirror / Atom feed
* Aonix + Win32Ada/ODBC example = stuck. HELP!
@ 1998-10-22  0:00 John *NOSPAM* Bunk
  1998-10-23  0:00 ` Pascal Obry
  1998-10-23  0:00 ` Sune Falck
  0 siblings, 2 replies; 3+ messages in thread
From: John *NOSPAM* Bunk @ 1998-10-22  0:00 UTC (permalink / raw)


Hello,
I'm using Aonix ObjectAda for Windows v7.1.1 Pro, and in trying to build /
run the ODBC example given in /samples/Win32Ada/ODBC, but I run into the
following upon build time...

--------------------Target: Win32 (Intel) Debug--------------------
ObjectAda Professional Edition version 7.1.424: adabuild
    Copyright (c) 1997, Aonix.  All Rights Reserved.
obj\elt\demo.obj
db.obj : error LNK2001: unresolved external symbol _SQLError@32
db.obj : error LNK2001: unresolved external symbol _SQLAllocEnv@4
db.obj : error LNK2001: unresolved external symbol _SQLAllocConnect@8
db.obj : error LNK2001: unresolved external symbol _SQLConnect@28
db.obj : error LNK2001: unresolved external symbol _SQLDisconnect@4
db.obj : error LNK2001: unresolved external symbol _SQLFreeConnect@4
db.obj : error LNK2001: unresolved external symbol _SQLFreeEnv@4
db.obj : error LNK2001: unresolved external symbol _SQLAllocStmt@8
db.obj : error LNK2001: unresolved external symbol _SQLSetCursorName@12
db.obj : error LNK2001: unresolved external symbol _SQLPrepare@12
db.obj : error LNK2001: unresolved external symbol _SQLBindCol@24
db.obj : error LNK2001: unresolved external symbol _SQLExecute@4
db.obj : error LNK2001: unresolved external symbol _SQLFetch@4
db.obj : error LNK2001: unresolved external symbol _SQLExecDirect@12
db.obj : error LNK2001: unresolved external symbol _SQLBindParameter@40
db.obj : error LNK2001: unresolved external symbol _SQLFreeStmt@8
demo.exe : fatal error LNK1120: 16 unresolved externals
Linking...
Link of demo failed rc=0.
Tool execution failed.


Obviously, it's trying to find a library somewhere which has the actual ODBC
bindings, but I'll be darned if I can find it anywhere.  I linked in all the
Win32 bindings I could.  OAW doesn't like it when I try to include other
libraries (such as the ODBC SDK which is on my machine).  I suppose if I
could read french, I'd find out what library I'm supposed to link in...

HELP PLEASE!
Thanks in advance,
John







^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Aonix + Win32Ada/ODBC example = stuck. HELP!
  1998-10-22  0:00 Aonix + Win32Ada/ODBC example = stuck. HELP! John *NOSPAM* Bunk
@ 1998-10-23  0:00 ` Pascal Obry
  1998-10-23  0:00 ` Sune Falck
  1 sibling, 0 replies; 3+ messages in thread
From: Pascal Obry @ 1998-10-23  0:00 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2765 bytes --]



I'am the author of this. It was written for GNAT but should works fine with
OA.
The problem here is that you must pass to the linker odbc32.lib. Look at
the OA documentation on how to do that.

After that you'll need to configure your ODBC driver...

Anyway you'll find the latest version of that binding+demos on my homepage.

Pascal.

--|------------------------------------------------------------
--| Pascal Obry                               Team-Ada Member |
--|                                                           |
--| EDF-DER-IPN-SID- T T I                                    |
--|                       Intranet: http://cln46gb            |
--| Bureau N-023            e-mail: pascal.obry@edfgdf.fr     |
--| 1 Av G�n�ral de Gaulle  voice : +33-1-47.65.50.91         |
--| 92141 Clamart CEDEX     fax   : +33-1-47.65.50.07         |
--| FRANCE                                                    |
--|------------------------------------------------------------
--|
--|   http://ourworld.compuserve.com/homepages/pascal_obry
--|
--|   "The best way to travel is by means of imagination"

John *NOSPAM* Bunk a �crit dans le message ...
>Hello,
>I'm using Aonix ObjectAda for Windows v7.1.1 Pro, and in trying to build /
>run the ODBC example given in /samples/Win32Ada/ODBC, but I run into the
>following upon build time...
>
>--------------------Target: Win32 (Intel) Debug--------------------
>ObjectAda Professional Edition version 7.1.424: adabuild
>    Copyright (c) 1997, Aonix.  All Rights Reserved.
>obj\elt\demo.obj
>db.obj : error LNK2001: unresolved external symbol _SQLError@32
>db.obj : error LNK2001: unresolved external symbol _SQLAllocEnv@4
>db.obj : error LNK2001: unresolved external symbol _SQLAllocConnect@8
>db.obj : error LNK2001: unresolved external symbol _SQLConnect@28
>db.obj : error LNK2001: unresolved external symbol _SQLDisconnect@4
>db.obj : error LNK2001: unresolved external symbol _SQLFreeConnect@4
>db.obj : error LNK2001: unresolved external symbol _SQLFreeEnv@4
>db.obj : error LNK2001: unresolved external symbol _SQLAllocStmt@8
>db.obj : error LNK2001: unresolved external symbol _SQLSetCursorName@12
>db.obj : error LNK2001: unresolved external symbol _SQLPrepare@12
>db.obj : error LNK2001: unresolved external symbol _SQLBindCol@24
>db.obj : error LNK2001: unresolved external symbol _SQLExecute@4
>db.obj : error LNK2001: unresolved external symbol _SQLFetch@4
>db.obj : error LNK2001: unresolved external symbol _SQLExecDirect@12
>db.obj : error LNK2001: unresolved external symbol _SQLBindParameter@40
>db.obj : error LNK2001: unresolved external symbol _SQLFreeStmt@8
>demo.exe : fatal error LNK1120: 16 unresolved externals
>Linking...
>Link of demo failed rc=0.
>Tool execution failed.
>







^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Aonix + Win32Ada/ODBC example = stuck. HELP!
  1998-10-22  0:00 Aonix + Win32Ada/ODBC example = stuck. HELP! John *NOSPAM* Bunk
  1998-10-23  0:00 ` Pascal Obry
@ 1998-10-23  0:00 ` Sune Falck
  1 sibling, 0 replies; 3+ messages in thread
From: Sune Falck @ 1998-10-23  0:00 UTC (permalink / raw)


You have to add a reference to the odbc32.lib in the apilib directory
either directly in the IDE (Linker only) or possibly by adding a
line to the win32ada.lrf file in directory ../win32ada/BINDING/LIB
directory and then adding that directory as a link in the IDE.

/Sune Falck


John *NOSPAM* Bunk skrev i meddelandet ...
>Hello,
>I'm using Aonix ObjectAda for Windows v7.1.1 Pro, and in trying to build /
>run the ODBC example given in /samples/Win32Ada/ODBC, but I run into the
>following upon build time...
>
>--------------------Target: Win32 (Intel) Debug--------------------
>ObjectAda Professional Edition version 7.1.424: adabuild
>    Copyright (c) 1997, Aonix.  All Rights Reserved.
>obj\elt\demo.obj
>db.obj : error LNK2001: unresolved external symbol _SQLError@32







^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-10-23  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-10-22  0:00 Aonix + Win32Ada/ODBC example = stuck. HELP! John *NOSPAM* Bunk
1998-10-23  0:00 ` Pascal Obry
1998-10-23  0:00 ` Sune Falck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox