Hi,
Guyz, I have encountered a problem, i have installed VS C++ 2005 Express Edition on my computer and have realised that there is not 'devenv.exe' that would go with it or with the PSDK that i have downloaded too. if anyone knows or had similar issues on how to call / build / compile etc projects in VS C++ 2005, please post the commands that are used, or links that would tell me how.
It seems to be a simple thinkg, but i just cannot get the answer, i was looking for so long on the web. Any help would be appreciated.
Many thanks,
in advance,
Dmitry

Command Line in C++
spirit_of_pk
Thanks a lot for the reply,
the first thing i did is i went on MSDN before and looked it up, so as you see it lists the options that can go with compiler, but nothing is said about the config that you can specify, and this is what im looking for.
It seems like the MSDN provides a partial help, not full, which is pretty sad...
i made the compiler work but facing one problem.,
this is the only errror that it gives me, and i do not know how to resolve it:
Build FAILED.
LINK : fatal error LNK1104: cannot open file 'user32.lib'
0 Warning(s)
1 Error(s)
i have tried specifing the paths in windows system variables...but it didnt help,
if you have any suggestion i would really appreciate it.
Many thanks in advace,
Dmitry
JJSarte
I just tried http://msdn2.microsoft.com/en-us/library/ba1z7822.aspx. Try to cut and past such link in your browser rather than clicking on it.
Here is what is at the page:
To add .lib files as linker input in the development environment
Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
Click the Linker folder.
Click the Input property page.
Modify the Additional Dependencies property.
Hope this works!
Thanks, Ayman Shoukry VC++ TeamTBone
Okay, that makes more sense. Thanks, Ayman.
Do you have any advice for the problem I described above I'll mention that when I view project dependencies in the IDE, they all look to be correct. A depends on B, which in turn depends on C, D, and E. When I try to use vcbuild from the command line to build B.vcproj, I get a bunch of link errors. Needless to say, I can't build A from the command prompt either. Using the /rebuild flag doesn't change any behavior.
Help
Thanks, Jeanne
Netonator
You can use the compiler directly from the command prompt using cl.exe or take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=480854&SiteID=1 hat explains the different methods to do so.
Thanks, Ayman Shoukry VC++ TeamMahasweta Das
HI, thanks agai for the reply,
Yes i am using vsbuild, and as you mentioned the user32.lib needs to be added i understand. it is just the problem that i do not know how to add it, and the link that you have send me "http://msdn2.microsoft.com/en-us/library/ba1z7e822.aspx" is unaccessible for some reason, it says
"Content not found The content you are looking for cannot be found.We apologize for the inconvenience but the content you requested cannot be found. "
probably the link is broken or smthn...
if you now any other places where i can see how the lib's are getting included
Great thanks for your help
Dmitry
ShrinanD Vyas
If you are building using vcbuild then the project needs to add user32.lib (from the PSDK\lib directory) to the additional dependencies (described in details at http://msdn2.microsoft.com/en-us/library/ba1z7e822.aspx). If you are using the cl.exe compiler straight ahead then you need to add user32.lib to your link command (provided you modified the lib path to point to the PSDK lib directory .... set lib=%lib%;<full path to the PSDK\lib>
Hope this helps!
Thanks, Ayman Shoukry VC++ TeamPrakashalladi
I'm digging up an old thread, so I don't know if this will be seen, but...
I'm encountering this same problem. Do you mean to set the include and lib system environment variables on my PC to point to the libs for this application, so the app can build using vcbuild from the command line That doesn't seem reasonable; am I misreading
I am also migrating a VS6 workspace to a VC2005 solution. The current system uses msdev within nmake makefiles, so I want to replace all calls to msdev with vcbuild calls. The place where this transition isn't working is where I have, say, project A depends on project B, and B depends on C, D, and E. When I build A from within the IDE it builds fine, but when I build it from the command prompt using vcbuild I get a slew of link errors. Since project E exists in another directory tree and I found out that vcbuild uses relative paths, I moved E to be in a subdirectory of the dir where A lives; like this:
I had this:
..\dir1\dirE\E.vcproj
..\dir2\A.vcproj
..\dir2\B.vcproj
..\dir2\dirC\C.vcproj
..\dir2\dirD\D.vcproj
So I took copied E.vcproj to ..\dir2\dirE\E.vcproj, and within the IDE I removed the first E.vcproj from the the solution and added the new one.
From the command prompt with dir2 as my active directory, I can now build projects C, D, and E. Within the IDE I can build projects A and B, but from the command prompt I get a slew of link errors. Following the suggestions of this post and others, in the IDE I went to the project properties and explicitly added B, C, D, and E's .lib's to the Linker | Input | Additional Dependencies line. No change in behavior.
What do I need to do, to build projects A and B from the command line using vcbuild
Thank you, Jeanne
flobadob1975
I am not sure about the lib in question but for the parameters, take a look at http://msdn2.microsoft.com/en-us/cz553aa1.aspx
Hope this helps!
Thanks, Ayman Shoukry VC++ TeamKris_H
when you are saying through command prompt, do you mean that you are using cl.exe directly
Thanks, Ayman Shoukry VC++ Teamchilling
To be on the safe side, you need to set the include and lib environment paths to point to the desired directories.
Thanks, Ayman Shoukry VC++ TeamEric Cooper
What I meant is that if you are using cl.exe then you need to set the lib and include environment variables if you need to include any other headers or librarieries directly.
Thanks, Ayman Shoukry VC++ TeamKalpesh Paradava
no, Im using vsBuild directly
thnks
tzmedia
Thanks for the reply Ayman,
One more question, does declaring the paths to lib folders and additional dependencies within the C++ 2005 Express GUI is enough for a command promt to know where the files are
cause if i run through the GUI, everything compiles, i have problems with failing to load libraries only through command promt.
Thanks
Hoang Minh
Thanks for your help a lot Ayman....
i was actually trying to build the project now...with VCBUILD and it gives me errrors saying that it cannot find libraries..such as lib32.lb .... would you know how to solve it
And by the way, if you could suggest somewhare where i can get the list of parameters for VCBUILD that would be a huge help.
Thanks, in advance,
Dmitry