![]() |
|
#1
|
|||
|
|||
problem about linker errorCPP / C++ / C Code:
Last edited by LuciWiz : 28-Aug-2007 at 11:29.
Reason: Please insert your C/C++ code between [cpp] & [/cpp] tags
|
|
#2
|
|||
|
|||
Re: problem about linker errorPay attention. Check the method declaration, definitions. Really. Don't just look "ok that's fine", LOOK at them and compare.
|
|
#3
|
|||
|
|||
Re: problem about linker errorQuote:
You're calling and declaring settime( with three integers ), but your implementation is settime( void )...the linker can't find your implementation of settime with three integer arguments. :davis: |
|
#4
|
|||
|
|||
Re: problem about linker errorthanks for ur reply , i tired then also it is showing the same problem and i am not understanding the problem.
|
|
#5
|
|||
|
|||
Re: problem about linker errorQuote:
CPP / C++ / C Code:
...is your implementation. CPP / C++ / C Code:
...is how you're trying to use it. CPP / C++ / C Code:
...is how it is declared. You have not implemented a version of settime that takes (int, int, int) so the linker can not find that version of the function. Because that version is being used by your code, it MUST find it in order to link an executable. Therefore, it fails and will not link. Since you are not using settime(void) just change your implementation to accept and use the three integer values that you want to give to it. :davis: |
|
#6
|
|||
|
|||
Re: problem about linker errorQuote:
The code in your original post has numerous compile-time errors, but the title of your thread is "problem about linker error". If you really compiled all of that code together, it could never get to the linker. 1. Post the exact code that you are actually getting a "linker error" from. 2. Post the exact error message (paste it directly into your post; don't paraphrase). 3. Tell us what compiler you are using. 4. Tell us how you compiled the code (command line or what). Regards, Dave |
Recent GIDBlog
Welcome to Baghdad by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linked Lists advice request | promsan | C Programming Language | 74 | 23-May-2007 08:29 |
| Major newbie problem | cynack | MS Visual C++ / MFC Forum | 1 | 08-Apr-2007 11:25 |
| Winsock error when compiling FLTK 2.0 Projects | mauriciorossi | FLTK Forum | 3 | 16-Aug-2005 10:18 |
| Help with syntax errors | PeteGallo | C Programming Language | 7 | 08-Aug-2005 20:30 |
| What is "Ambigious symbol" ??*( a compilation error) | small_ticket | C++ Forum | 2 | 07-Jan-2005 21:10 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The