subj: gcc stopped being able to find references to odbc api functions definitions;
I am writing / re-writing c , c++ code, to conduct database queries from a program via odbc calls. The api for this communications connection comes with unixODBC package. Environment involves commends issued into shell windows from KDE, in Suse8.0 Linux.
Command gcc prog1.c -o prog1 now terminates with errors. It no longer finds the references to functions provided by unixODBC, although it normally did so previously. This was checked by trying to compile again the code from several days ago which had compiled and run correctly earlier. But now it too fails to compile / link. The sql*.h files in /usr/include remain readable in a text editor. Removal of unixODBC and restore using the Suse cdrom disks via Yast2 gui did not fix things. Those sql*.h files are present only when packages unixodbc and unixodbc - development are currently installed.
Below appear 4 out of about 9-12 similar error message lines from the compile attempt.
/tmp/ccbPLX4E.o: In function ‘main’:0
/tmp/ccbPLX4E.o: (.text+0x72) undefined reference to ‘SQLAllocHandle’
/tmp/ccbPLX4E.o: (.text+0xc3) undefined reference to ‘SQLSetEnvAttr’
/tmp/ccbPLX4E.o: (.text+0x103) undefined reference to ‘SQLAllocHandle’
Ideas?
- - pipemole - - 4/16/2005;
I am writing / re-writing c , c++ code, to conduct database queries from a program via odbc calls. The api for this communications connection comes with unixODBC package. Environment involves commends issued into shell windows from KDE, in Suse8.0 Linux.
Command gcc prog1.c -o prog1 now terminates with errors. It no longer finds the references to functions provided by unixODBC, although it normally did so previously. This was checked by trying to compile again the code from several days ago which had compiled and run correctly earlier. But now it too fails to compile / link. The sql*.h files in /usr/include remain readable in a text editor. Removal of unixODBC and restore using the Suse cdrom disks via Yast2 gui did not fix things. Those sql*.h files are present only when packages unixodbc and unixodbc - development are currently installed.
Below appear 4 out of about 9-12 similar error message lines from the compile attempt.
/tmp/ccbPLX4E.o: In function ‘main’:0
/tmp/ccbPLX4E.o: (.text+0x72) undefined reference to ‘SQLAllocHandle’
/tmp/ccbPLX4E.o: (.text+0xc3) undefined reference to ‘SQLSetEnvAttr’
/tmp/ccbPLX4E.o: (.text+0x103) undefined reference to ‘SQLAllocHandle’
Ideas?
- - pipemole - - 4/16/2005;