Subj : How do you link DLLs? To : borland.public.cpp.borlandcpp From : "Ian Hopkins" Date : Sat Jul 26 2003 01:56 pm I have written a program which uses the pthreads win32 library. I now want to compile a program but I don't know how to include DLLs on the command line with bcc32. here is the command I run: bcc32 -p -Llib server_2.cpp dale.cpp md5.c md5main.c lib/pthreadGC.dll The first problem is that I have to type "lib/pthreadGC.dll" even though I have -Llib. The second problem is that the compiler does NOT like the pthreadGC.dll file at all: lib/pthreadGC.dll: Error E2206 lib/pthreadGC.dll 1: Illegal character 'É' (0x90) Error E2206 lib/pthreadGC.dll 1: Illegal character '' (0x0) Error E2206 lib/pthreadGC.dll 1: Illegal character '?' (0x3) Error E2206 lib/pthreadGC.dll 1: Illegal character '' (0x0) Error E2206 lib/pthreadGC.dll 1: Illegal character '' (0x0) Error E2206 lib/pthreadGC.dll 1: Illegal character '' (0x0) Error E2206 lib/pthreadGC.dll 1: Illegal character '?' (0x4) Error E2206 lib/pthreadGC.dll 1: Illegal character '' (0x0) Error E2206 lib/pthreadGC.dll 1: Illegal character '' (0x0) Error E2206 lib/pthreadGC.dll 1: Illegal character '' (0x0) Error E2206 lib/pthreadGC.dll 1: Illegal character ' ' (0xff) Error E2206 lib/pthreadGC.dll 1: Illegal character ' ' (0xff) Error E2206 lib/pthreadGC.dll 1: Illegal character '' (0x0) Error E2206 lib/pthreadGC.dll 1: Illegal character '' (0x0) Error E2206 lib/pthreadGC.dll 1: Illegal character '?' (0xb8) Error E2206 lib/pthreadGC.dll 1: Illegal character '' (0x0) Error E2206 lib/pthreadGC.dll 1: Illegal character '' (0x0) Error E2206 lib/pthreadGC.dll 1: Illegal character '' (0x0) Error E2206 lib/pthreadGC.dll 1: Illegal character '' (0x0) Error E2206 lib/pthreadGC.dll 1: Illegal character '' (0x0) Error E2206 lib/pthreadGC.dll 1: Illegal character '' (0x0) Error E2206 lib/pthreadGC.dll 1: Illegal character '' (0x0) Error E2206 lib/pthreadGC.dll 1: Illegal character '@' (0x40) Error E2206 lib/pthreadGC.dll 1: Illegal character '' (0x0) Error E2206 lib/pthreadGC.dll 1: Illegal character '' (0x0) Error E2228 lib/pthreadGC.dll 1: Too many error or warning messages *** 26 errors in Compile *** I am new to the bcc32 compiler so I need a little help to figure this one out. .