| | |
command line build option
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2007
Posts: 16
Reputation:
Solved Threads: 0
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
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
>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!".
>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
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.
>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
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
•
•
Join Date: Jul 2007
Posts: 16
Reputation:
Solved Threads: 0
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.
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.
>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.
>/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
![]() |
Similar Threads
- C command-line I/O question (C++)
- Compiling and running an entire poject from command line/terminal on Linux (IT Professionals' Lounge)
- Help with Creating a Command Line Menu (C++)
- Using command line parameters (C++)
- Command Line Parameter (C++)
- Help! How to make a csh receive argvs from command line? (*nix Software)
- Three New Command-Line Tools (Windows tips 'n' tweaks)
- command line (OS X)
Other Threads in the C++ Forum
- Previous Thread: string search help
- Next Thread: can someone help me to correct this program?[urgent]
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator getline givemetehcodez graph iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






