freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] Undefined references to all database functions
- From: "James K. Lowden" <jklowden AT freetds.org>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Undefined references to all database functions
- Date: Thu, 22 May 2008 07:48:35 -0400
panssarikomppania AT gmail.com wrote:
> > You want to use the GNU binutils to see what's what, and look closely
> > at the command line (I assume is) generated by Dev-C++. Make sure 1)
> > it's compiling as C, not C++, and 2) that libsybdb is really being
> > linked in.
>
> I checked it out, everything is compiled as C, not C++. I also took a
> look at the Dev-C++ command line, the whole thing is below.
>
> Compiler: Default compiler
> Building Makefile: "C:\path\to\project\Makefile.win"
> Executing make clean
> rm -f ../project/main.o ../project/project_private.res project.exe
> gcc.exe main.c -o ../project/main.o -I"C:\path\to\Dev-cpp\include" -i
> project_private.rc --input-format=rc -o ../project/project_private.res
> -0 coff --include-dir C:\path\to\Dev-cpp\lib" -lsybdb
> gcc.exe ../project/project.o ../project/project_private.res
> "project.exe" -L"C:\path\to\Dev-cpp\lib" -lsybdb
> main.c: Undefined reference to 'dbinit'.
> main.c: Undefined reference to 'dblogin'.
As I said, you have a linker question, not a FreeTDS question. I don't
have any experience with MinGW.
--jkl
-
[freetds] Undefined references to all database functions,
panssarikomppania, 05/21/2008
-
Re: [freetds] Undefined references to all database functions,
James K. Lowden, 05/21/2008
-
Re: [freetds] Undefined references to all database functions,
panssarikomppania, 05/22/2008
- Re: [freetds] Undefined references to all database functions, James K. Lowden, 05/22/2008
-
Re: [freetds] Undefined references to all database functions,
panssarikomppania, 05/22/2008
-
Re: [freetds] Undefined references to all database functions,
James K. Lowden, 05/21/2008
Archive powered by MHonArc 2.6.24.