mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] What's missing?


From: Enoch
Subject: [Mingw-cross-env-list] What's missing?
Date: Thu, 11 Oct 2012 01:01:27 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.7) Gecko/20120922 Icedove/10.0.7

Hi,

I have a small program that builds well in Linux but refuses to link
against sqlite3 and readline under MXE. I guess that if I turn this
program into an autoconf compliant project then autoconf would figure
out how to do that, but that's daunting :-)

By the way, pointing environment variables LD_LIBRARY_PATH and
LIBRARY_PATH to mxe's lib places did not help.

Thanks, Enoch.

PATH=/home/enoch/mxe/usr/bin:/home/enoch/mxe/usr/i686-pc-mingw32/bin
CPATH=/home/enoch/mxe/usr/include:/home/enoch/mxe/usr/i686-pc-mingw32/include
i686-pc-mingw32-gcc -Wall -Wextra -g -lreadline -lsqlite3 -o vote.exe vote.c
/tmp/ccF65ASU.o: In function `Guard':
/home/enoch/Words/winston_management/owners/vote.c:42: undefined
reference to `sqlite3_close'
/tmp/ccF65ASU.o: In function `main':
/home/enoch/Words/winston_management/owners/vote.c:101: undefined
reference to `sqlite3_open_v2'
/home/enoch/Words/winston_management/owners/vote.c:106: undefined
reference to `sqlite3_exec'
/home/enoch/Words/winston_management/owners/vote.c:108: undefined
reference to `readline'
/home/enoch/Words/winston_management/owners/vote.c:138: undefined
reference to `sqlite3_exec'
/home/enoch/Words/winston_management/owners/vote.c:146: undefined
reference to `sqlite3_exec'
/home/enoch/Words/winston_management/owners/vote.c:157: undefined
reference to `sqlite3_exec'
/home/enoch/Words/winston_management/owners/vote.c:160: undefined
reference to `sqlite3_close'






reply via email to

[Prev in Thread] Current Thread [Next in Thread]