On 17.05.2012 14:09, luciano de souza wrote:
hello all,
I am compiling CGI modules with Freepascal in commandline mode. if I do:
fpc test.pas
the result is "test.exe". But the source name needs to be different
from the executable name. For this reason:
fpc test.pas -oindex.cgi
This command should result in index.cgi, placed on the current folder.
However, this command is ignore and I obtain "test.exe" again.
My question is: how to produce a executable, compiling from the
commandline in FPC 2.6.0, with a different name of its source?
The above DOES work. Maybe your shell bites you and you need to qoute
the option ( => "-oindex.cgi"). Did the compiler write something like
the following?
Warning: Only one source file supported, changing source file to compile
from ".cgi" into "test.pas"
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal