This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin 1.5.12-1, g++ 3.3.3 and DB2 UDB DLLs

Lange Torsten wrote:


I've got a problem using embedded SQL with cygwin 1.5.12-1, g++ (GCC) 3.3.3
(cygwin special) and DB2 UDB 8.1.4. My platform is Windows NT 4 SP 6.
Preprocessing the embedded SQL-code works and I am able to compile the
generated code and link the program with db2api.lib! (I thought that I have
to build a Cygwin compatible import library via nm and dlltool, but
db2app.dll, db2sys.dll, db2wint.dll and the others are stripped - so I tried
the original import library.)

Does this make a difference if a DLL is stripped or not? I am not aware of this. Have you actually tried to create import libs?

  gcc -m32 -O0 -ggdb -g3 -Wall -c -obuild/cpp/compiledir/debug/Test.o

g++ -obuild/cpp/compiledir/debug/Test.exe
build/cpp/compiledir/debug/Test.o -Le:/Programme/SQLLIB/lib -ldb2api -Le:/Programme/SQLLIB/lib -ldb2cli

Program execution results in a core dump:
Are there any additional parameter for compiling/linking or is there another
way to create the Cygwin compatible import libs?

Have you tried to link against the DLL directly?

Gerrit -- =^..^=

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]