| | |
undefined reference error
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2007
Posts: 4
Reputation:
Solved Threads: 0
Hi I am getting an undefined reference error from my code
here is a snippet of my code.
I am using DEVC++ 5 and I have included the library that I need to use in the project-project options-parameters - linker
there i have:
I also added that directory in
project-project options-directory-directories-library directories
it is at least partially linked because if i hold my mouse of the
FunctionFromALibrary()
DEVC++ will show me the prototype
here is a snippet of my code.
C Syntax (Toggle Plain Text)
#include <stdio.h> #include <windows.h> //defining functions void ErrorFunc(int error); int error = 0; int main(void){ return 0; } void ErrorFunc(int error) { FunctionFromALibrary(error); }
there i have:
C Syntax (Toggle Plain Text)
thisLibrary.lib -lmingw32
I also added that directory in
project-project options-directory-directories-library directories
it is at least partially linked because if i hold my mouse of the
FunctionFromALibrary()
DEVC++ will show me the prototype
Last edited by chico1st; May 21st, 2008 at 4:02 pm.
![]() |
Similar Threads
- getting the undefined reference error (C++)
- [linker error] undefined reference - why am I getting this error? (C++)
- undefined reference error while linking..help (C++)
- undefined reference error -HELP! (C++)
- Dev C++ linker errors, undefined reference (C++)
- [Linker error] undefined reference to `CQTMovieFile::CQTMovieFile()' (C++)
- Dev-C++, GLUI linker error, undefined reference (C++)
- Linker Error>Undefined reference error to xyz (C++)
- undefined reference errors when using C++ Sockets Library (C++)
Other Threads in the C Forum
- Previous Thread: malloc fails after 7000 to 8000 loops - available memory is 1GB
- Next Thread: explanation for source code of printf
| Thread Tools | Search this Thread |
#include * ansi array arrays asterisks bash binarysearch centimeter changingto char character convert copyimagefile cprogramme creafecopyofanytypeoffileinc database dynamic execv feet fgets file floatingpointvalidation fork framework function getlogicaldrivestrin givemetehcodez grade gtkwinlinux hacking histogram ide inches include incrementoperators infiniteloop initialization input interest intmain() iso kernel keyboard kilometer license linked linkedlist linux list lists locate looping lowest matrix meter microsoft number oddnumber opendocumentformat openwebfoundation overwrite owf pdf pointer posix power probleminc process program programming radix recursion recv recvblocked research reversing scripting segmentationfault sequential single socket socketprograming socketprogramming standard strchr string suggestions systemcall test testing threads turboc unix urboc user variable wab whythiscodecausesegmentationfault windowsapi






