News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Scripting

Started by sethjackson, November 06, 2006, 09:46:50 PM

Previous topic - Next topic

sethjackson

Hey I'm having a newbie problem with scripts.

I keep getting errors with this kind of code:

Code (cpp) Select

base.AddLibDir(_T("sdk\tinyxml"));


Quote
Squirrel's strings, behave like C or C++, are delimited by quotation marks(") and can contain escape sequences(\t,\a,\b,\n,\r,\v,\f,\\,\",\',\0,\xhhhh).

Well I need the \t in there so how do I go about doing this? Sorry for the n00b question. :P
Thanks. :)


MortenMacFly

Quote from: sethjackson on November 06, 2006, 09:46:50 PM
Code (cpp) Select

base.AddLibDir(_T("sdk\tinyxml"));

(\t,\a,\b,\n,\r,\v,\f,\\,\",\',\0,\xhhhh)
...maybe this way:
Code (cpp) Select

base.AddLibDir(_T("sdk\\tinyxml"));

...you could also use this:
Code (cpp) Select

base.AddLibDir(_T("sdk/tinyxml"));

...but I wonder if if really could be that simple...?! Did I miss something?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

killerbot


mandrav

Code (cpp) Select
base.AddLibDir(_T("sdk\\tinyxml"));

*or*

Code (cpp) Select
base.AddLibDir(_T("sdk/tinyxml"));
Be patient!
This bug will be fixed soon...

sethjackson