![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
11 years old
Join Date: Nov 2007
Posts: 79
Rep Power: 1
![]() |
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
__________________
iload_0 iconst_1 ishl or iload_0 iconst_2 idiv or iload_0 iconst_2 iconst_1 imul idiv [1] & [2] use the smallest stack size Last edited by null_ptr0; Feb 23rd, 2008 at 7:45 PM. Reason: new error |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,799
Rep Power: 5
![]() |
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. C Syntax (Toggle Plain Text)
|
|
|
|
|
|
#3 | |
|
11 years old
Join Date: Nov 2007
Posts: 79
Rep Power: 1
![]() |
Re: from void * to C string?
Quote:
__________________
iload_0 iconst_1 ishl or iload_0 iconst_2 idiv or iload_0 iconst_2 iconst_1 imul idiv [1] & [2] use the smallest stack size |
|
|
|
|
|
|
#4 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,198
Rep Power: 5
![]() |
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. |
|
|
|
|
|
#5 | |
|
11 years old
Join Date: Nov 2007
Posts: 79
Rep Power: 1
![]() |
Re: from void * to C string?
Quote:
__________________
iload_0 iconst_1 ishl or iload_0 iconst_2 idiv or iload_0 iconst_2 iconst_1 imul idiv [1] & [2] use the smallest stack size |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| An Attempt at a DBMS | grimpirate | PHP | 8 | Apr 17th, 2007 1:01 PM |
| Throwing an exception when using string constructor | csrocker101 | C# | 3 | Apr 8th, 2007 2:04 PM |
| Method not returning string | csrocker101 | C# | 1 | Apr 6th, 2007 6:45 PM |
| Help with breaking apart a string | csrocker101 | C# | 6 | Apr 6th, 2007 7:50 AM |
| function | solomon_13000 | Java | 6 | Apr 2nd, 2005 11:42 PM |