Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 10th, 2007, 5:24 PM   #11
Soulstorm
Hobbyist Programmer
 
Soulstorm's Avatar
 
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 239
Rep Power: 3 Soulstorm is on a distinguished road
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)
Soulstorm is offline   Reply With Quote
Old Aug 10th, 2007, 5:39 PM   #12
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Aug 10th, 2007, 6:24 PM   #13
Ghost
Man Bear Pig Hunter
 
Ghost's Avatar
 
Join Date: Jul 2005
Location: NorCal, USA
Posts: 292
Rep Power: 4 Ghost is on a distinguished road
People Program for Mac's? Wierd...

Haha just kidding, but seriously....
__________________
People who click "images" that end with .exe shouldn't have computers.
Ghost is offline   Reply With Quote
Old Aug 10th, 2007, 8:00 PM   #14
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Aug 11th, 2007, 12:28 AM   #15
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 843
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
Quote:
Originally Posted by Soulstorm View Post
taniumdecoy, here's the template you gave earlier, altered so that it works with my configuration. Check it out.
I'm glad you got it working. Did you mean to attach the altered template to your post, because I don't see it... 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.
titaniumdecoy is online now   Reply With Quote
Old Aug 11th, 2007, 2:28 AM   #16
Soulstorm
Hobbyist Programmer
 
Soulstorm's Avatar
 
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 239
Rep Power: 3 Soulstorm is on a distinguished road
Quote:
Originally Posted by titaniumdecoy View Post
I'm glad you got it working. Did you mean to attach the altered template to your post, because I don't see it... 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.
Funny, I had the same idea about distribution, I think Mac users need such a thing. If you distribute it (since the original termplate was your template after all), please provide me with a link to the distributed file. I have a site, and some blogs I want to post that in, along with complete instructions for OS X users.

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)
Soulstorm is offline   Reply With Quote
Old Aug 11th, 2007, 2:50 AM   #17
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 843
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
@Soulstorm: Thanks for posting that.

Quote:
Originally Posted by Soulstorm View Post
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.
It was very difficult to figure out how to make the template because of the lack of documentation. I will write up a tutorial of sorts as soon as I get around to it--I don't have much time these days because I just got a (summer) job. I will let you know as soon as it is finished; in the meantime, if you have a specific question I would be happy to answer.

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.
titaniumdecoy is online now   Reply With Quote
Old Aug 11th, 2007, 4:58 AM   #18
Soulstorm
Hobbyist Programmer
 
Soulstorm's Avatar
 
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 239
Rep Power: 3 Soulstorm is on a distinguished road
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)
Soulstorm is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:32 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC