![]() |
multiple definition of variable
DevCpp with g++ is giving me errors about 3 of my variables declared in a header as multiple definitions, even though I use the #ifndef preprocessor command correctly.
Any help? note: it occurs during link time |
Re: from void * to C string?
(Edit: Fine, change your quesiton on me.)
Here it is in C. I'm not sure if C++ has different rules regarding void pointer typecasting, but hopefully it can be of use until someone else fills in the details for me. :
|
Re: from void * to C string?
Quote:
|
Re: from void * to C string?
If you want useful help, it is generally a good idea to provide information about what your problem actually is. For example, what error messages you are getting, and what compiler (or linker) is generating them?
Changing your question while someone is in the process of providing an answer to your original question is rather pointless too. |
Re: from void * to C string?
Quote:
|
| All times are GMT -5. The time now is 12:54 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC