Message: Correction - don't use a source folder and watch out for ++ Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Warning Correction - don't use a source folder and watch out for ++ 

Forum: Installation and Configuration
Re: Note XCode as an IDE including compile warnings and stepping through code (Calvin Giles)
Re: None Re: XCode as an IDE including compile warnings and stepping through code (Calvin Giles)
Date: 15 Dec, 2010
From: Calvin Giles <Calvin Giles>

For some reason, if you put your source code in ProjectRoot/source, the build warnings won't successfully find your files. You will still see errors and warnings in Xcode, but when you double click on them, they won't work.

If you put your makefile, main.cc, src folder and include folder in your project root directly (ie in the same folder as MyProject.xcodeproj) then when you get an error, it is highlighted in the source code on the line with the error. You can jump straight to errors by double clicking them in the build results window.

Also, a note on project.pbxproj and user.pbxuser files - when adding environment variables, anything with a + (like Darwin-g++) or a : (Like DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Applications/CLHEP/2.0.4.5/lib) will prevent Xcode from parsing these files and break your project. Simply enclose the offending string in double quotes (G4SYSTEM = "Darwin-g++") and it will work fine.

Calvin

 Add Message Add Message
to: "Correction - don't use a source folder and watch out for ++"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]