[SDL] error with 'multiple definition' solved (thanks)

nathayan de los valles semiogro at hotmail.com
Thu Feb 15 12:00:39 PST 2007


Thanks for the help.
How "Patrick Mohr" said... the best way to use global variables is:

extern std::string rem; (inside .h file)
and
std::string rem = "//"; (inside .cpp file)

(I guess I have readed it in any place...)

My thanks to all the people who have helped.

_________________________________________________________________
Grandes éxitos, superhéroes, imitaciones, cine y TV... 
http://es.msn.kiwee.com/ Lo mejor para tu móvil.



More information about the SDL mailing list