Hello,
I want to use quantlib within TextMate. My Shell Variables are:
PATH = /opt/local/bin:/opt/local/sbin: /Library/Frameworks/Python.framework/Versions/2.6/bin: /usr/bin: /bin: /usr/sbin: /sbin: /usr/local/bin: /usr/X11/bin: /usr/texbin: /opt/local/include: /opt/local/lib:
and
TM_CXX = -I/opt/local/include
When I test quantlib with g++ -I/opt/local/include/ -I/opt/local/include/boost testQuantlib.cpp -o testQuantlib -L/opt/local/lib/ -lQuantlib it compiles fine.
How must I set the shell variables to use quantlib to compile with TextMate?
Thanks for the answer, Andre
On 11 Nov 2011, at 12:49, Andre de Boer wrote:
PATH = […] and TM_CXX = -I/opt/local/include
TM_CXX is the compiler, so unset this (it defaults to ‘g++’ for C++).
When I test quantlib with g++ -I/opt/local/include/ -I/opt/local/include/boost testQuantlib.cpp -o testQuantlib -L/opt/local/lib/ -lQuantlib it compiles fine.
How must I set the shell variables to use quantlib to compile with TextMate?
You need to set TM_CXX_FLAGS to include the flags used above.
Hoi Allan,
Thanks for the reaction, excuse me for my ignorance, but when I put:
TM_CXX_FLAGS equal to -I/opt/local/include:-I/opt/local/include/boost:-L/opt/local/lib/:-lQuantlib I still get errormessages like: No such file or directory.
What is the right TM_CXX_FLAGS?
Thanks for the reaction, Andre
Op 11/11/2011 13:28, Allan Odgaard schreef:
On 11 Nov 2011, at 12:49, Andre de Boer wrote:
PATH = […] and TM_CXX = -I/opt/local/include
TM_CXX is the compiler, so unset this (it defaults to ‘g++’ for C++).
When I test quantlib with g++ -I/opt/local/include/ -I/opt/local/include/boost testQuantlib.cpp -o testQuantlib -L/opt/local/lib/ -lQuantlib it compiles fine.
How must I set the shell variables to use quantlib to compile with TextMate?
You need to set TM_CXX_FLAGS to include the flags used above.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 11 Nov 2011, at 7:16 AM, André de Boer wrote:
TM_CXX_FLAGS equal to -I/opt/local/include:-I/opt/local/include/boost:-L/opt/local/lib/:-lQuantlib I still get errormessages like: No such file or directory.
Replace the colons with spaces. It's not a path list; it's a literal series of command-line options that will be inserted into the g++ command.
— F
Thanks!!
On 11 nov. 2011, at 16:12, Fritz Anderson wrote:
On 11 Nov 2011, at 7:16 AM, André de Boer wrote:
TM_CXX_FLAGS equal to -I/opt/local/include:-I/opt/local/include/boost:-L/opt/local/lib/:-lQuantlib I still get errormessages like: No such file or directory.
Replace the colons with spaces. It's not a path list; it's a literal series of command-line options that will be inserted into the g++ command.
— F
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate