[CURRENT: I need to display a vector3df type as stringw]

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
macron12388
Posts: 126
Joined: Wed Sep 29, 2010 8:23 pm

[CURRENT: I need to display a vector3df type as stringw]

Post by macron12388 »

---

I will just use one thread for all my questions, I will edit the title to show the current question I am asking. I hope to not spam the forum, as I will have a lot of questions.

---

Table of Contents

Page 1
  • compiler linker not finding MinGW UNSOLVED

    Converting a type like vector3df to a stringw type usable with setWindowCaption() UNSOLVED
Last edited by macron12388 on Mon Nov 15, 2010 2:01 am, edited 9 times in total.
macron12388
Posts: 126
Joined: Wed Sep 29, 2010 8:23 pm

Post by macron12388 »

QUESTION: I need to display a vector3df type with setWindowCaption(). I know it needs a stringw type as it's main argument, so I can't just pop it in there. Sorry, this must be a really basic data conversion, but I've been looking for a long time now, and tried basic searches like "vector3df to stringw" and such. How would I go about converting vector3df to a type I can display in setWindowCaption() as a stringw?

Thanks

ANSWER:
macron12388
Posts: 126
Joined: Wed Sep 29, 2010 8:23 pm

Post by macron12388 »

QUESTION: I am able to load the code::blocks project file into code::blocks fine. I read through it, and hit build and run. It runs fine from within code::blocks, and as expected, there is an executable created in my main irrlichtversion/bin folder.

Image

However when I try to run that binary it says that irrlicht.dll was missing, so I copied irrlicht.dll and libIrrlicht.a into that bin folder.

Image

Now it is saying that I am missing libgcc_s_dw2-1.dll.

Image

===

Here is how I have my code::blocks ide set up.

Image

Image

Image

Also, I think I accidentally set the code::blocks user experience thing to "advanced" user interface, I'll look for that and set it to not-advanced.

Please let me know if you would like more information.

ANSWER
: Make sure you link into ALL the proper tabs. I missed my linker settings >.< Sorry... Well, for any other newbies out there, make sure you look carefully over your compiler settings/linkings before freaking out.

EDIT: Gah, nvmd, it still won't run the .exe outside the IDE, I probably am not linking things right, but I've spent the whole day checking and double checking EVERYTHING... *sigh*
EDITEDIT: :( Okay, everything seems to work fine in Visual Studios, I guess I'll just stick with that IDe until I get code::blocks up and running again...daaaaaanggg, I really liked code::blocks.
Bate
Posts: 364
Joined: Sun Nov 01, 2009 11:39 pm
Location: Germany

Post by Bate »

No clue about Codeblocks.

As for the string conversion :

Code: Select all

vector3df testVec(1, 2, 3);
stringw testStr;

testStr += (s32)testVec.X; // cast to int if you want
testStr += " | ";
testStr += testVec.Y;
testStr += " | ";
testStr += testVec.Z;

// would make it something like :
// "1 | 2.000000 | 3.000000"
Never take advice from someone who likes to give advice, so take my advice and don't take it.
macron12388
Posts: 126
Joined: Wed Sep 29, 2010 8:23 pm

Post by macron12388 »

Thanks looks good! :)
gerdb
Posts: 194
Joined: Wed Dec 02, 2009 8:21 pm
Location: Dresden, Germany

Post by gerdb »

libgcc_s_dw2-1.dll

this dll is found in the non official dw2 release of gcc

so it is not a problem of codeblocks, until it was compiled with gcc dw2 (dwarf2 edition), maybe you have a nightly build,

i had this error once, i downloaded the special compiler edition and use it since then until now and had never any problems so far.

but i dont know the exact reason i downloaded and installed this (guess some issues with wxWidgets)
Post Reply