can anyone explain this:
C:\C Files\BACKUP>bcc32 -w- demo2.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
demo2.c:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Expected an option: C:\Borland\Bcc55\lib
can anyone explain this:
C:\C Files\BACKUP>bcc32 -w- demo2.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
demo2.c:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Expected an option: C:\Borland\Bcc55\lib
>bcc32 -w- demo2.c
I thought it was -W.
bcc32 -W demo2.c
-w- removes warnings, -W compiles Windows programs so they're different.
It looks like some sort of syntax error of the parameters passed to the programs but your command line looks fine to me so how does your ilink32.cfg look like?
Figured it out. In the ilink32.config file, i hadd a space between the -L and "C\Borland\...\lib"Originally Posted by OnionKnight
It turns out that a space messes it up.
it would. The content of the file is passed as a series of commandline arguments to the linker. The linker got 2 arguments (/L and your path) and interpreted them as such, when it expected a single argument (/L<path>).
It's -W for GCC:>bcc32 -w- demo2.c
I thought it was -W.
bcc32 -W demo2.c
(I like to add -g or -s to GCC as well.)Code:$ gcc -W -Wall -ansi -pedantic -O2 -o hello hello.c
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.