Article View: alt.comp.shareware.programmer
Article #85Re: Access database by C++ problem. Urgent
From: Marty
Date: Wed, 22 Mar 2000 00:00
Date: Wed, 22 Mar 2000 00:00
18 lines
2143 bytes
2143 bytes
> > Please help me to solve the problem. > I have a database in MSAccess, and add it in OBDC called 'Ico'. > Than, I write a prog in C++ to access database through OBDC. I > use the function call like SQLConnect and SQLGetData .......etc > I can compile it on Borland C++ 5.02 successfully, > But, When I try to run it, the compiler given out errors. (Like below) > What is the mean for??? > > Error: Unresolved external 'SQLAllocEnv ' referenced form > c:\2000FYP\DBTRY1.OBJ > Error: Unresolved external 'SQLAllocConnect ' referenced form > c:\2000FYP\DBTRY1.OBJ > Error: Unresolved external 'SQLConnect ' referenced form Your link step is missing a lib file. I forgot what is it Look in your LIB directory for something like ODBC32.LIB or SQL.LIB or something like that. Maybe your documentation says,
Technical Details
Message-ID:
<8b9fpp$41o$0@216.39.149.224>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8b83g9$3fa14@imsp212.netvigator.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10288e,c15c5372deee986d,start X-Google-Attributes: gid10288e,public X-Google-Thread: 107d46,c15c5372deee986d,start X-Google-Attributes: gid107d46,public X-Google-Thread: 11431d,c15c5372deee986d,start X-Google-Attributes: gid11431d,public X-Google-Thread: fc5c9,c15c5372deee986d,start X-Google-Attributes: gidfc5c9,public X-Google-Thread: f5c5c,c15c5372deee986d,start X-Google-Attributes: gidf5c5c,public X-Google-Thread: fda7f,c15c5372deee986d,start X-Google-Attributes: gidfda7f,public X-Google-Thread: 1143a7,c15c5372deee986d,start X-Google-Attributes: gid1143a7,public X-Google-Thread: 105df1,c15c5372deee986d,start X-Google-Attributes: gid105df1,public From: "Marty" <marty@nospam.org> Subject: Re: Access database by C++ problem. Urgent Date: 2000/03/22 Message-ID: <8b9fpp$41o$0@216.39.149.224> X-Deja-AN: 600697897 References: <8b83g9$3fa14@imsp212.netvigator.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-MSMail-Priority: Normal Newsgroups: alt.comp.shareware.programmer,borland.public.cppbuilder.database,borland.public.cppbuilder.vcl.components.using,comp.databases,comp.lang.basic.visual.database,comp.lang.java.databases,comp.os.ms-windows.apps.misc,comp.os.ms-windows.programmer.misc