944,038 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 2777
  • C++ RSS
Sep 20th, 2007
0

command line build option

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
m_meena is offline Offline
16 posts
since Jul 2007
Sep 20th, 2007
0

Re: command line build option

>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!".
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Sep 20th, 2007
0

Re: command line build option

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
m_meena is offline Offline
16 posts
since Jul 2007
Sep 20th, 2007
0

Re: command line build option

This is an interesting thread that talks about command-line compiles
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is online now Online
21,954 posts
since Aug 2005
Sep 20th, 2007
0

Re: command line build option

>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
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Sep 20th, 2007
0

Re: command line build option

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
m_meena is offline Offline
16 posts
since Jul 2007
Sep 20th, 2007
0

Re: command line build option

>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.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: string search help
Next Thread in C++ Forum Timeline: can someone help me to correct this program?[urgent]





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC