C and ESQL problem
Posted in 2000
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL, Data Types & Schema Design
Hello, I have some errors building a C program that uses the Informix database. I am using WindowsNT and MS Visual C++. I do not have sufficient programming background to debug the program. Can anyone help me? I have attached the build errors. Any help would be most appreciated, thanks in advance... Andrew Smith Geography Department University of Colorado, Boulder sandrew@ucsu.colorado.edu --------------------Configuration: gipsy_funcs - Win32 Debug-------------------- Linking... gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_free gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_file_close gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_file_read gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_string_to_lvarchar gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_file_open gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_lvarchar_to_string gipsy_funcs.obj : error LNK2001: unresolved external symbol _MakeCompositeValue gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_fp_setisdone gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_fp_funcstate gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_fp_setreturnisnull gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_fp_argisnull gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_set_mem_duration gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_fp_setfuncstate gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_alloc gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_fp_request gipsy_funcs.obj : error LNK2001: unresolved external symbol _GetColumnByName gipsy_funcs.obj : error LNK2001: unresolved external symbol _SetGetNext Debug/gipsy_funcs.exe : fatal error LNK1120: 17 unresolved externals Error executing link.exe. gipsy_funcs.exe - 18 error(s), 0 warning(s)
Did you use the esql script (hmm maybe it's an executable on NT) to link or did you try to link by hand using link or cc? Looks like none of the Informix libraries were included in the link. Use esql to link and the problem goes away. Art S. Kagel Andrew Smith wrote: > > Hello, > > I have some errors building a C program that uses the Informix database. I > am using WindowsNT and MS Visual C++. I do not have sufficient programming > background to debug the program. Can anyone help me? I have attached the > build errors. > > Any help would be most appreciated, thanks in advance... > > Andrew Smith > Geography Department > University of Colorado, Boulder > sandrew@ucsu.colorado.edu > > --------------------Configuration: gipsy_funcs - Win32 > Debug-------------------- > Linking... > gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_free > gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_file_close > gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_file_read > gipsy_funcs.obj : error LNK2001: unresolved external symbol > _mi_string_to_lvarchar > gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_file_open > gipsy_funcs.obj : error LNK2001: unresolved external symbol > _mi_lvarchar_to_string > gipsy_funcs.obj : error LNK2001: unresolved external symbol > _MakeCompositeValue > gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_fp_setisdone > gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_fp_funcstate > gipsy_funcs.obj : error LNK2001: unresolved external symbol > _mi_fp_setreturnisnull > gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_fp_argisnull > gipsy_funcs.obj : error LNK2001: unresolved external symbol > _mi_set_mem_duration > gipsy_funcs.obj : error LNK2001: unresolved external symbol > _mi_fp_setfuncstate > gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_alloc > gipsy_funcs.obj : error LNK2001: unresolved external symbol _mi_fp_request > gipsy_funcs.obj : error LNK2001: unresolved external symbol _GetColumnByName > gipsy_funcs.obj : error LNK2001: unresolved external symbol _SetGetNext > Debug/gipsy_funcs.exe : fatal error LNK1120: 17 unresolved externals > Error executing link.exe. > > gipsy_funcs.exe - 18 error(s), 0 warning(s)