Advertisement Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

122 Neutral

About dark0fire

  • Rank
  1. Hi guys, im trying to add boost in a C++ project on Mac OS X for a while, but im stuck with reference errors. Undefined symbols: "boost::system::get_generic_category()", referenced from: __static_initialization_and_destruction_0(int, int)in Main.o __static_initialization_and_destruction_0(int, int)in Main.o __static_initialization_and_destruction_0(int, int)in Main.o "boost::system::get_system_category()", referenced from: boost::asio::error::get_system_category() in Main.o __static_initialization_and_destruction_0(int, int)in Main.o __static_initialization_and_destruction_0(int, int)in Main.o ld: symbol(s) not found collect2: ld returned 1 exit status I builded librarys with bjam, i linked them in the LIBRARY_SEARCH_PATHS: LIBRARY_SEARCH_PATHS = /Users/*usr*/boost_1_43_0/bin.v2/libs/date_time/build/darwin-4.2.1/release/threading-multi /Users/*usr*/boost_1_43_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/link-static/threading-multi /Users/*usr*/boost_1_43_0/bin.v2/libs/system/build/darwin-4.2.1/release/link-static/threading-multi / users/*usr*/boost_1_43_0/stage/lib <<Not sure if this is right, but no documentation shows right options Also i made sure the include paths are correct: HEADER_SEARCH_PATHS = /users/*usr*/boost_1_43_0 I looked on the web for answeres, but lots of info was not on mac, and they only suggested to do things without any form of instructions. I got boost working on microsoft visual studio 2008 on windows 7, so i know it should work, but i am not sure if it is supposed to work on xcode. If anyone has more experience with this, can you please help me? :) Thanks in advance. EDIT: I'm trying to include asio.hpp in boost folder
  2. dark0fire

    Getting started with 3d multiplayer RTS

    Hi there! Im interested in your concept, if you need a C++ programmer, i'm willing to help :) please pm me if you need a programmer :D I'm not very good at directx programming, i dont have that much of experience with the API, but i have done some work with it, viewing user created models and walk around these models using keyboard and mouse. Cheers!
  3. dark0fire

    C++: Manually set Memory location

    Quote:Original post by jonathanjansson Locking in multithreaded programming has nothing to do with private variables. Locking is just a way of stopping threads so not two of them are writing to the same variable at the same time. Thank you for clearing that up :), i was thinking that locking in MT prevented IO to that var location. Bregma, Thanks for your reply, this is really usefull information, i could not find it in any books so far.
  4. dark0fire

    C++: Manually set Memory location

    Quote:Original post by bubu LV You want to access private members from outside of class? This could help:#define private public Thanx bubu LV, this works for that part( pretty awesome solution btw :P ) Quote:Original post by Captain P What exactly are you trying to achieve here? Are you working with some existing class that you can't modify, but you need access to one of it's private variables? If not, either just make that variable public, or provide a function that returns a pointer to your private variable (but then, what's the point in making it private?). Otherwise, either the class' design is flawed, or you're trying to use it in a way it's not meant to be used. So rather than hacking around the problem, see if you can fix it instead. Actually, i'm trying to use it in a way it is not meant to be used, i'm trying to hack around in my own code, not with my vision of using this in evil ways, but to understand how safe a memory location is/can be. Seeing the fact that redefining the meaning of private to public is possible, i'm questioning myself how 'locking' is possible in a multithreaded program. Now the only quetion remaining: Is there an option to use some kind of Direct Memory Acces? [Edited by - dark0fire on March 3, 2010 6:41:33 AM]
  5. Hi there peeps! I was wondering if it is possible to set a variable location to a specific memory value? I mean something like: int A = 0; int* B = &A; //B Points to memory of A int C = 0; *C = B; I know the syntax is not correct, im only curious if this is possible to do, so you might insert a private members' memory location in here to edit the content from outside. Like this structure: emplate<class Type> class Test { public: template<class Type> void Change(Type** _Pointer ) { *_Pointer = &Private; } Test() { PointToPrivate = &Private; this->Private = "Default"; } void Print() { cout << "Private value: " << this->Private << "\n"; } Type* PointToPrivate; protected: Type Private; }; This allows an external pointer to point to Private, when poiner is being set equal to PointToPrivate; This way you CAN acces the private member from outside. Only thing what is needed is an internal pointer that is public and points to another private variable( and has to be same type offcourse) . But as far as i know, you can not add public members to a class and point to its private members. Also inheritance is not possible, it IS possible to use inheritance IF the pointer needs to point to a protected member though. I hope this is possible some way, even if it IS difficult, i would like to know the answer. Thanks in advance! :)
  6. dark0fire

    Networking in C++

    I once had to start developing with sockets as well, and i found a great source( at least i think it is great), with a little patience and understanding, you can start network programming within 2 weeks! Source:
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!