Page 1 of 1

problem compile with BCC55

Posted: Mon Dec 01, 2003 6:08 pm
by HPW
Just download BCC55 and tried to compile newlisp_7311:
C:\newlisp\newlisp_7311>c:\Borland\BCC55\Bin\make -f makefile_win32
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
bcc32 -DOPSYS=6 -c -w-par- -w-8064 -w-8004 -w-8012 newlisp.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
newlisp.c:
Error E2209 newlisp.c 21: Unable to open include file 'signal.h'
Error E2209 newlisp.h 20: Unable to open include file 'stdio.h'
Error E2209 newlisp.h 21: Unable to open include file 'stdlib.h'
Error E2209 newlisp.h 22: Unable to open include file 'locale.h'
Error E2209 newlisp.h 23: Unable to open include file 'setjmp.h'
Error E2209 newlisp.h 24: Unable to open include file 'stdarg.h'
Error E2209 newlisp.h 25: Unable to open include file 'dirent.h'
Error E2209 newlisp.h 28: Unable to open include file 'winsock2.h'
Error E2209 newlisp.h 29: Unable to open include file 'dos.h'
Error E2209 newlisp.h 30: Unable to open include file 'io.h'
Error E2209 newlisp.h 40: Unable to open include file 'math.h'
Error E2209 newlisp.h 41: Unable to open include file 'float.h'
Error E2209 newlisp.h 42: Unable to open include file 'string.h'
Error E2209 newlisp.h 43: Unable to open include file 'ctype.h'
Error E2209 newlisp.h 44: Unable to open include file 'fcntl.h'
Error E2209 newlisp.h 45: Unable to open include file 'stdarg.h'
Error E2209 newlisp.h 46: Unable to open include file 'time.h'
Error E2209 newlisp.h 47: Unable to open include file 'sys/stat.h'
Error E2209 newlisp.h 48: Unable to open include file 'sys/timeb.h'
Error E2209 newlisp.h 49: Unable to open include file 'sys/types.h'
Error E2303 newlisp.h 230: Type name expected
Error E2141 newlisp.h 304: Declaration syntax error
Error E2209 pcre.h 39: Unable to open include file 'stdlib.h'
Error E2141 protos.h 309: Declaration syntax error
Error E2141 protos.h 310: Declaration syntax error
Error E2228 protos.h 310: Too many error or warning messages
*** 26 errors in Compile ***

** error 1 ** deleting newlisp.obj
C:\Borland\BCC55\Include
and
C:\Borland\BCC55\Bin
are in the path.

Any hints?

Posted: Mon Dec 01, 2003 6:48 pm
by Lutz
the only thing in my path is: c:\Borland\BCC55\Bin\

not the Include


Lutz

Posted: Mon Dec 01, 2003 6:51 pm
by Lutz
the only thing in my path is: c:\Borland\BCC55\Bin\

not the Include

I will also put a compiled newlisp.dll in the development directory,


Lutz

Posted: Mon Dec 01, 2003 6:52 pm
by Lutz
the only thing in my path is: c:\Borland\BCC55\Bin\

not the Include

I will also put a compiled newlisp.dll and .exe in the development directory,


Lutz

Posted: Mon Dec 01, 2003 7:21 pm
by adamss3
In the c:\borland\bcc55\bin directory, you need two files:

bcc32.cfg which contains

-I"C:\Borland\Bcc55\include"
-L"C:\Borland\Bcc55\lib;C:\Borland\Bcc55\lib\PSDK"


and ilink32.cfg which contains

-L"C:\Borland\Bcc55\lib;C:\Borland\Bcc55\lib\PSDK"


That's how the tool finds the libraries.

Posted: Mon Dec 01, 2003 9:14 pm
by HPW
Thanks for the hints, now I got them compiled!

One question: The downloaded 7311-exe is 2 KB smaller than the DLL.
My compiled EXE is the same size as the DLL. Both 189 KB.

But now it's to late to try more. Will do in the morning.

Posted: Tue Dec 02, 2003 7:00 am
by HPW
I found the solution when I tried it again on my office pc.
I have to delete all compile-files between compiling DLL and EXE.
When I do not do this I get a different size DLL which also crashes on use.

So now I can test from other calling enviroments.

Posted: Tue Dec 02, 2003 12:37 pm
by Lutz
do a 'make clean' before compiling different flavors.

Lutz