PC Review


Reply
Thread Tools Rate Thread

CSC.EXE Compiler Error when /Lib switch have reference path with s

 
 
=?Utf-8?B?UHJhdGlrIE1laHRh?=
Guest
Posts: n/a
 
      19th Jan 2005
Hi Friends,

I am facing trouble with dynamically compiling C# source files. Here is the
example:

Following command works:
csc.exe /out:test.dll /target:library /r:system.dll,Infineon.FD.Repository.S
hared.dll
/lib:E:\Pratik\FD\SourceCode\RE_TB\GUI\REGUI\bin\Debug\RepositoryBin\
test.cs

But when there is space in /lib: reference path. If fails!!! See following
example:

csc.exe /out:test.dll /target:library /r:system.dll,Infineon.FD.Repository.S
hared.dll /lib:E:\Pratik\FD\SourceCode\RE_TB\GUI\REGUI\bin\Debug\Repository
Bin\
test.cs

In first example /lib reference path doesn't have space. So it works. But,
in second example there is a space in /lib: reference path, Repository Bin,
it fails!!!

Even I tried putting reference path in quotes, like following example. Still
It fails.

csc.exe /out:test.dll /target:library /r:system.dll,Infineon.FD.Repository.S
hared.dll /lib:"E:\Pratik\FD\SourceCode\RE_TB\GUI\REGUI\bin\Debug\Repository
Bin\" test.cs

Please reply, if you have the solution.....

Awaiting your response...

Thanks in advance,
Pratik Mehta
 
Reply With Quote
 
 
 
 
Wiktor Zychla
Guest
Posts: n/a
 
      19th Jan 2005
try to put quotation marks around the whole lib switch

"/lib:E:\Pratik\FD\SourceCode\RE_TB\GUI\REGUI\bin\Debug\Repository Bin\"

regards,
Wiktor Zychla


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiler Error Message: CS0246: The type or namespace name could not be found (are you missing a using directive or an assembly reference?) infinetinc@gmail.com Microsoft ASP .NET 4 26th Dec 2006 04:46 PM
Possible VS2003 c# compiler bug: error CS0584: Internal Compiler Error: stage 'COMPILE' symbol '' eblanco Microsoft Dot NET Framework 0 28th Jul 2006 09:40 PM
fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'f:\vs70builds\3077\vc\Compiler\Utc\src\P2\main.c', line 148) PufferFish Microsoft VC .NET 10 6th Aug 2004 10:33 PM
fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2701) =?Utf-8?B?TWFyY28gTm92YQ==?= Microsoft VC .NET 9 27th Apr 2004 06:55 PM
Strange compiler error : passing string reference Bart De Boeck Microsoft VC .NET 0 19th Sep 2003 07:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:47 AM.