Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LNK2001: unresolved external symbol

Status
Not open for further replies.

phinoppix

Programmer
Jul 24, 2002
437
US
C++ for dummy question:

I'm trying to connect to Firebird with the following code:
Code:
#include "stdafx.h"
#include <ibase.h>

int main(int argc, char* argv[])
{
	char dpb[24] = {isc_dpb_version1, isc_dpb_num_buffers, 1, 90,
					isc_dpb_user_name, 6, 'S','Y','S','D','B','A',
					isc_dpb_password, 9, 'm','a','s','t','e','r','k','e','y'};

	ISC_STATUS_ARRAY status;
	isc_db_handle hDb = 0L;
	char * pdbname = &quot;d:/firebird/mydata.fdb&quot;;
	
	isc_attach_database(status, strlen(pdbname), pdbname, &hDb, 24, dpb);
	if(status[0] == 1)
		printf(&quot;Error occurred\n&quot;);

	printf(&quot;Hello World!\n&quot;);
	return 0;
}
I have set INCLUDE path (@Tools/Options) with the location of Firebird\INCLUDE folder.

My brain's having cramps on this problem. :D

TIA [peace]
 
you should add explicitly some .lib files to additional linker dependenties.

Ion Filipski
1c.bmp
 
tnx. I was looking for gds32.lib when Im supposed to use
fbclient_ms.lib

lol
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top