From: Reece Dunn (msclrhd_at_[hidden])
Date: 2006-06-01 14:05:57
Andrey Melnikov wrote:>Hi all,> >1) I'm back. I hope someone still remembers me.And who are you, again ;)?>I invoke bjam from MCVC 2005 using a makefile project. When I get>compilation errors, they are parsed ok and added to Errors pane, but>I'm unable to click the errors and navigate to exact line of code.> >I have sln and vcproj files in other directory than my Jamroot (in>"vc" subdirectory):> >project/vc/main.sln>project/vc/main.vcproj>project/Jamroot>project/main.cpp> >When I invoke bjam, I have to change current directory from>project/vc/ to project/ first, so bjam can find Jamroot.This is probably a stupid question, but why don't you have theJamroot file in the vc directory? And shouldn't it be Jamfileinstead?>And when>cl.exe is invoked, it writes the following command:> >main.cpp(7) : warning C4101: 'r' : unreferenced local variable> >When I click this line, vc opens project/vc/main.cpp instead of>project/main.cpp because it thinks that paths in output messages are>relative to the folder where vcproj is located.Yup.>What is the best way to fix this?Move the Jam[root|file] into the same directory as the vcproj file!Alternatively, you could try adding "../main.cpp" into the vcprojfile as one of the supplementary files.>I think this confusion would be fixed if I could invoke bjam from>project/vc current folder and pass it Jamroot location explicitly. Is>this possible?Not as far as I know. It is possible to do it the other way around,and get the Jamroot in project/ to use the main.cpp in vc/: exe hi : vc/main.cpp ;Then you don't need the main.cpp in the project/ directory :).HTH,- Reece
Express yourself instantly with MSN Messenger! Download today it's FREE!
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk