Discussion:
[ILINK32 Error] Fatal: Illegal option: 2.dll
(too old to reply)
Micheal Gurnett
2008-07-24 22:33:14 UTC
Permalink
I'm trying to write a small project to in order to use cairo. However, I'm
not even able to compile the simplest of programs. I keep getting the
following "[ILINK32 Error] Fatal: Illegal option: 2.dll" when linking
libcairo-2.dll. What can be the problem. Has anyone used c++ builder 2007
with cairo.


Thank you
David Dean [CodeGear]
2008-07-25 00:00:29 UTC
Permalink
Post by Micheal Gurnett
Fatal: Illegal option: 2.dll" when linking
libcairo-2.dll. What can be the problem.
My guess is the hyphen. What is the exact command line in the Output
pane?
--
David Dean (CodeGear)
Lead C++ QA Engineer
Micheal Gurnett
2008-07-25 09:47:40 UTC
Permalink
Output shows the following

Build started 2008-07-25 10:28:24.
__________________________________________________
Project "C:\Documents and Settings\Michael\Skrivbord\test\Project2.cbproj"
(Make target(s)):
Target MakeObjs:
Skipping the following files because they are up-to-date: Project2.cpp
Target BccCompile:
c:\program\codegear\rad
studio\5.0\bin\bcc32.exe -D_DEBUG;NO_STRICT -D_RTLDLL;USEPACKAGES -I"c:\program\codegear\rad
studio\5.0\include";"c:\program\codegear\rad
studio\5.0\include\dinkumware";"c:\program\codegear\rad
studio\5.0\include\vcl";..\..\..\Skrivbord\test;"c:\program\codegear\rad
studio\5.0\include\Indy10";"c:\program\codegear\rad
studio\5.0\RaveReports\Lib" -y -v -vi- -k -r- -c -tWM -tW -H=Debug\Project2.pch
-oDebug\Unit2.obj -w-par -Od -vi- -v Unit2.cpp
Target _PerformLink:
c:\program\codegear\rad
studio\5.0\bin\ilink32.exe -L"c:\program\codegear\rad
studio\5.0\lib\debug";"c:\program\codegear\rad
studio\5.0\lib";"c:\program\codegear\rad
studio\5.0\lib\obj";"c:\program\codegear\rad
studio\5.0\lib\psdk";..\..\..\Skrivbord\test;"c:\program\codegear\rad
studio\5.0\lib";"c:\program\codegear\rad
studio\5.0\lib\Indy10";"c:\program\codegear\rad
studio\5.0\RaveReports\Lib";"C:\Documents and Settings\All
Users\Dokument\RAD Studio\5.0\DCP";Debug -j"c:\program\codegear\rad
studio\5.0\lib\debug";"c:\program\codegear\rad
studio\5.0\lib";"c:\program\codegear\rad
studio\5.0\lib\obj";"c:\program\codegear\rad
studio\5.0\lib\psdk";..\..\..\Skrivbord\test;"c:\program\codegear\rad
studio\5.0\lib";"c:\program\codegear\rad
studio\5.0\lib\Indy10";"c:\program\codegear\rad
studio\5.0\RaveReports\Lib";"C:\Documents and Settings\All
Users\Dokument\RAD Studio\5.0\DCP";Debug -lDebug -v -Gn -GA"C:\Documents and
Settings\Michael\Skrivbord\test\vfs195.tmp"="C:\Documents and
Settings\Michael\Skrivbord\test\Project2.res" -GA"C:\Documents and
Settings\Michael\Skrivbord\test\vfs196.tmp"="C:\Documents and
Settings\Michael\Skrivbord\test\Unit2.dfm" -aa -dLIBCAIRO-2.DLL c0w32.obj
vclx.bpi vcl.bpi dbrtl.bpi Rave75VCL.bpi bdertl.bpi rtl.bpi bcbie.bpi
vclactnband.bpi xmlrtl.bpi bcbsmp.bpi vcldb.bpi vcldbx.bpi dsnap.bpi
dsnapcon.bpi teeUI.bpi teedb.bpi tee.bpi adortl.bpi vclib.bpi ibxpress.bpi
dbxcds.bpi dbexpress.bpi DbxCommonDriver.bpi IndyCore.bpi IndySystem.bpi
IndyProtocols.bpi inet.bpi IntrawebDB_90_100.bpi Intraweb_90_100.bpi
vclie.bpi websnap.bpi webdsnap.bpi inetdbbde.bpi inetdbxpress.bpi
soaprtl.bpi memmgr.lib sysinit.obj Debug\Project2.obj Debug\Unit2.obj ,
Debug\Project2.exe , Debug\Project2.map , import32.lib cp32mti.lib , ,
"C:\Documents and Settings\Michael\Skrivbord\test\vfs195.tmp"
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Borland.Cpp.Targets(1796,3):
error : Fatal: Illegal option: 2.DLL
Done building target "_PerformLink" in project "Project2.cbproj" -- FAILED.
Done building project "Project2.cbproj" -- FAILED.
Build FAILED.
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Borland.Cpp.Targets(1796,3):
error : Fatal: Illegal option: 2.DLL
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.65
Post by Micheal Gurnett
I'm trying to write a small project to in order to use cairo. However, I'm
not even able to compile the simplest of programs. I keep getting the
following "[ILINK32 Error] Fatal: Illegal option: 2.dll" when linking
libcairo-2.dll. What can be the problem. Has anyone used c++ builder 2007
with cairo.
Thank you
David Dean [CodeGear]
2008-07-25 21:34:46 UTC
Permalink
Post by Micheal Gurnett
-dLIBCAIRO-2.DLL
As I suspected, the hyphen in libcairo-2.dll is the problem. You
cannot quote items for the -d switch either. Please enter this into QC
and I'll discuss it with the team.
--
David Dean (CodeGear)
Lead C++ QA Engineer
Micheal Gurnett
2008-07-25 22:44:53 UTC
Permalink
Thank you for your time and help
Post by David Dean [CodeGear]
Post by Micheal Gurnett
-dLIBCAIRO-2.DLL
As I suspected, the hyphen in libcairo-2.dll is the problem. You
cannot quote items for the -d switch either. Please enter this into QC
and I'll discuss it with the team.
--
David Dean (CodeGear)
Lead C++ QA Engineer
Micheal Gurnett
2008-07-26 19:19:05 UTC
Permalink
it has been given the code 64852

Thanks
Post by Micheal Gurnett
Thank you for your time and help
Post by David Dean [CodeGear]
Post by Micheal Gurnett
-dLIBCAIRO-2.DLL
As I suspected, the hyphen in libcairo-2.dll is the problem. You
cannot quote items for the -d switch either. Please enter this into QC
and I'll discuss it with the team.
--
David Dean (CodeGear)
Lead C++ QA Engineer
David Dean [CodeGear]
2008-07-26 19:42:35 UTC
Permalink
Post by Micheal Gurnett
it has been given the code 64852
I've opened it.
--
David Dean (CodeGear)
Lead C++ QA Engineer
Loading...