command line build option

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2007
Posts: 16
Reputation: m_meena is an unknown quantity at this point 
Solved Threads: 0
m_meena m_meena is offline Offline
Newbie Poster

command line build option

 
0
  #1
Sep 20th, 2007
Hi all,

I want to create a script file which builds my projects in VC++, C#, VB and .NET.
When i build a component by command line it gives error for the dependent libraries. How can i give the option or specify path for the libraries and include files to build a specific project in command line.
I tried the given below command for a vb project.
>vb6.exe /reference:"c:\abc.dll" /MAKE "C:\myproject.vbp"
but it says invalid command line arguement /reference. i replaced it with /r but the same error persists. Also i tried for/lib option but no success.

Please let me know what are the options to specify these includes in command line for various projects (vc++,C#,vb,net)

Thanks in advance,
Meena
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,823
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 748
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Senior Bitch

Re: command line build option

 
0
  #2
Sep 20th, 2007
>Please let me know what are the options to specify these includes in command line for various
>projects (vc++,C#,vb,net)
Is MSDN down, or something? I'd like to believe that you're smart enough to check the reference for your compiler before asking a question that will be answered with "RTFM!".
New members chased away this month: 3
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 16
Reputation: m_meena is an unknown quantity at this point 
Solved Threads: 0
m_meena m_meena is offline Offline
Newbie Poster

Re: command line build option

 
0
  #3
Sep 20th, 2007
hi,

thanx for replying but i din't get you. If you mean to say that i should have searched msdn, then i did that but dint get much from that. If you have the solution, please let me know.

thanks in advance,
Meena
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,585
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1487
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: command line build option

 
0
  #4
Sep 20th, 2007
This is an interesting thread that talks about command-line compiles
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,823
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 748
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Senior Bitch

Re: command line build option

 
0
  #5
Sep 20th, 2007
>i did that but dint get much from that
Really. I'll be the first to admit that MSDN's search feature sucks ass, but not when it comes to compiler options. However, since you're either not being completely honest or you're just not very good at doing research, I'll link you directly to a couple to prove that MSDN does indeed have the information you're looking for:

http://msdn2.microsoft.com/en-us/lib...zy(VS.71).aspx
http://msdn2.microsoft.com/en-us/lib...wy(VS.80).aspx
New members chased away this month: 3
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 16
Reputation: m_meena is an unknown quantity at this point 
Solved Threads: 0
m_meena m_meena is offline Offline
Newbie Poster

Re: command line build option

 
0
  #6
Sep 20th, 2007
thanx for the msdn link. but i already mentioned in my first post that i did try using /reference and /lib options but the error thrown was "invalid command line argument."
After that next error thrown was "Can't find project or library file".
on opening the project in IDE and there specifying the references for the missing dlls, the project gets compiled successfully. after saving and exiting from IDE and then building it from command prompt give the error.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,823
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 748
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Senior Bitch

Re: command line build option

 
0
  #7
Sep 20th, 2007
>but i already mentioned in my first post that i did try using /reference and
>/lib options but the error thrown was "invalid command line argument."
And your example also showed that you're using the VB6 compiler, which is extremely likely to have different command line switches. My links showed the C# and C++ options, respectively.

>on opening the project in IDE and there specifying the references
>for the missing dlls, the project gets compiled successfully
Then check your project properties. IIRC, Visual Studio 6 does indeed show you the complete list of command line switches built from the options you've selected in the advanced properties. You can cut and paste that into the command prompt and it should produce an identical build.
New members chased away this month: 3
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC