![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Hobbyist Programmer
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 239
Rep Power: 3
![]() |
I finally did it. Game_Ender, thanks A LOT!
titaniumdecoy, here's the template you gave earlier, altered so that it works with my configuration. Check it out.
__________________
Project::Soulstorm (personal homepage) |
|
|
|
|
|
#12 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Shit, I feel like a troublemaker for recommending Boost in the first place.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#13 |
|
Man Bear Pig Hunter
Join Date: Jul 2005
Location: NorCal, USA
Posts: 292
Rep Power: 4
![]() |
People Program for Mac's? Wierd...
Haha just kidding, but seriously....
__________________
People who click "images" that end with .exe shouldn't have computers. |
|
|
|
|
|
#14 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Mac's represent 3 % of the market for desktop/laptop/PC type machines. That is about 0.3 % of the computer market. If you run the numbers, you will find that Mac programmers still draw in a substantial amount of money. How much are you drawing down? Haha just kidding, but seriously....
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#15 | |
|
Expert Programmer
|
Quote:
It would be very helpful for me to see what you changed because I plan to fix it up and distribute it. (If you only altered the Makefile, that is all I need to see.) Thanks.I might even make a GUI installer for the Boost libraries and the Xcode template, depending on how difficult that turns out to be. |
|
|
|
|
|
|
#16 | |
|
Hobbyist Programmer
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 239
Rep Power: 3
![]() |
Quote:
And, yes, I only changed the makefile. Here is the code. #makefile for the boost project #You must modify the environment variables at the start of the file #in order to work! #example: Consider the 1_34_1 boost distribution, which installs all the #stuff by default in usr/local/lib (for the libraries) and in #usr/local/boost_1_34_1/boost (for the headers to be included). The following #setup is for loading the libraries from this location. If you want to load them #from a custom location, modify the variables below accordingly. BOOST_ROOT=/usr/local PRODUCT_NAME=example BOOST_INCLUDE_DIR=$(BOOST_ROOT)/include/boost_1_34_1 BOOST_LIB_DIR=$(BOOST_ROOT)/lib main: main.cpp g++ main.cpp -I$(BOOST_INCLUDE_DIR) -L$(BOOST_LIB_DIR) -o $(PRODUCT_NAME) #-lboost_regex clean: rm -f main With that, I can include every header I want, such as regex. And, finally, can you please pm me (or say it here) how did you make the template? I mean, how did you configure the target to use the makefile? And what kind of target is this? I was searching yesterday for that kind of target but it seems I can't find it anywhere. Any indication would be great. @Ghost: Have you even programmed in a Mac? It's a great development environment. Seems to me you haven't even heard of Cocoa. Haha, just kidding, but seriously... @Dawei, from troubles, come solutions, and finally knowledge. I always wanted to install Boost, but the mistake was I did posts in Mac specific forums, in the programming section, because I thought that I couldn't find anyone here who uses mac, boost, and who would be willing to help. Anyway, your recomendation was useful after all.
__________________
Project::Soulstorm (personal homepage) |
|
|
|
|
|
|
#17 | |
|
Expert Programmer
|
@Soulstorm: Thanks for posting that.
Quote:
For now I will say: The target is an External Target. Set it as the project's target by selecting the "Project > Set Active Target > Target Name". External targets use make by default; create a file named Makefile and voila. You may have to designate a new executable as well (if nothing happens after a successful compilation this is probably the problem); right-click Executables and select "Add > New Custom Executable...". The path should be the product name, or whatever comes after the -o flag of the g++ command--for the Makefile you posted above, it would be "example". Set it as the Active Executable the same way you set a new target. Last edited by titaniumdecoy; Aug 11th, 2007 at 3:03 AM. |
|
|
|
|
|
|
#18 |
|
Hobbyist Programmer
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 239
Rep Power: 3
![]() |
Thanks a lot, titaniumdecoy. Now I understand everything. When you write any tutorial, or wrap the project into a template, give me a link.
__________________
Project::Soulstorm (personal homepage) |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| devC++ and building static libraries.... | MicDareall | C++ | 1 | Jun 6th, 2006 10:51 AM |
| Questions about extra Sound and Graphics libraries | Soulstorm | C++ | 2 | May 15th, 2006 10:42 AM |
| How to meet these cross-platform project goals? | mattengland | C++ | 1 | Apr 3rd, 2006 4:01 AM |
| how to add libraries to dev c++ | biohazard | C++ | 1 | Mar 8th, 2006 11:43 AM |
| static class members and libraries (linking question) | earl | C++ | 2 | Jun 22nd, 2005 5:21 PM |