I have evp.h on this path : /usr/include/openssl/evp.h So how may i change the makefile or configure to maybe fix this issue ? I have a main file, sim.c, a header file net.h, a header file friends.h, and a file with the functions, net.c. Not the answer you're looking for? I guess this is a linker problem, Your guess is incorrect. http://cygnussoft.com/undefined-reference/c-error-undefined-reference-to-function.html
share|improve this answer answered Jun 5 at 16:08 Sierra 1 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up You want: libdatabase.a or -ldatabase at the end of your main compile line share|improve this answer answered Jan 25 '14 at 11:34 Paul Evans 16.6k31429 1 Thanks its working –Jeggu How can I solve this problem? Is there a mutual or positive way to say "Give me an inch and I'll take a mile"? http://stackoverflow.com/questions/6214211/solving-undefined-reference-to-errors-in-a-makefile
What to do with my out of control pre teen daughter If you put two blocks of an element together, why don't they bond? Join them; it only takes a minute: Sign up Cannot compile with makefile - undefined reference to `boost::re_detail up vote 0 down vote favorite I got an assignment to improve running For example :- db.o: db.cpp $(CC) -c $(CFLAGS) $(LDFLAGS) db.cpp $(LIBS) Also, while compiling, there's no need to provide "$(LIBS)" to the compiler, only provide them when linking.
To troubleshoot build problems, it's often useful to figure out what make is trying to do, and then run the commands individually one at a time so you can see where What could make an area of land be accessible only at certain times of the year? What does a profile's Decay Rate actually do? Undefined Reference To Function C++ Converting Game of Life images to lists What to do when you've put your co-worker on spot by being impatient?
Not the answer you're looking for? Make Undefined Reference To Function Browse other questions tagged c compiler or ask your own question. Make an ASCII bat fly around an ASCII moon Find first non-repetitive char in a string Red balls and Rings Who is the highest-grossing debut director? Why aren't there direct flights connecting Honolulu, Hawaii and London, UK?
Formatting when I submitted the post. –Jeremy Nov 9 '10 at 5:21 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Linker Input File Unused Because Linking Not Done more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Libraries (-lfoo) should be added to the LDLIBS variable instead. How do you get a dragon head in Minecraft?
Uploading a preprint with wrong proofs Who is the highest-grossing debut director? lib/core.a A lot of time spend, seemingly a lot of hours wasted but a valuable lesson learned so I guess it became worth my while. Makefile Undefined Reference To Function Not the answer you're looking for? Make Undefined Reference To Main Undefined reference C Programming0What is wrong with my makefile?
C++ delete a pointer (free memory) The determinant of the matrix Is there a difference between u and c in mknod Just a little change and we're talking physical education Find have a peek at these guys Personally I would compile all of the FreeRTOS files separately as an individual step, then combine them into an archive file, say libFreeRTOS.a which you can then link against using -lFreeRTOS What is the output of 'make clean; make' Undefined reference errors come from the linker (ld). Every time I try, it stops somewhere in the midst of compiling saying this: "undefined reference to `boost::re_detail::put_mem_block(void*)' collect2: ld returned 1 exit status make: * [cpu] Error 1" This is C Undefined Reference To Function
That should do, unless you are using a very old complier with even more evil things that can go wrong ;) share|improve this answer answered Nov 8 '14 at 18:52 rubmz How to know if a meal was cooked with or contains alcohol? http://www.cplusplus.com/articles/firedraco1/ Feb 25, 2010 at 1:33am UTC PatCioe (15) sorry about that. check over here What is the probability that they were born on different days?
Sieve of Eratosthenes, Step by Step Gender roles for a jungle treehouse culture Referee did not fully understand accepted paper What to do when you've put your co-worker on spot by Makefile In C What is the difference (if any) between "not true" and "false"? Related 30Linker error: “linker input file unused because linking not done”, undefined reference to a function in that file4Undefined reference to 'main' error in crt1.o function _start-1C Gameboy separate functions an
more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed linker makefile g++ share|improve this question asked Dec 6 '14 at 10:25 youround 264 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote All my header Join them; it only takes a minute: Sign up Undefined reference maybe makefile is wrong? C++ Undefined Reference To When a program is compiled and linked, the compiler requires this "main" function to be defined.
Uncertainty principle Is there a difference between u and c in mknod Why don't we construct a spin 1/4 spinor? Any help appreciated. linux boost reference undefined mint share|improve this question edited Sep 20 '12 at 19:09 Obaid 794927 asked Sep 20 '12 at 6:48 darxsys 6821924 add a comment| 2 Answers 2 active http://cygnussoft.com/undefined-reference/undefined-reference-to-function-in-shared-library.html CC probably has a default, which is why that much is working.
No new replies allowed. I had a protection in Norway with Geneva book Sieve of Eratosthenes, Step by Step What do you call "intellectual" jobs? How should I deal with a difficult group and a DM that doesn't help? Why does Mal change his mind?
I arbitrarily chose to name it lib/core.a. Referee did not fully understand accepted paper Why won't a series converge if the limit of the sequence is 0? Probably a stupid mistake, but I just can't see it. As you can see in these questions with g++ the order of your arguments at link time is really important.
What is a Peruvian Word™? How can I make sim.c able to access the functions in net.c? Last edited on Feb 25, 2010 at 3:04pm UTC Topic archived. Find first non-repetitive char in a string What is the difference (if any) between "not true" and "false"?
Uncertainty principle What is the 'dot space filename' command doing in bash? 4 dogs have been born in the same week. i.e. Same for preprocessor and compiler: CPPFLAGS, CFLAGS and CXXFLAGS. –Maxim Egorushkin Sep 20 '12 at 8:21 works. I have since attempted to add and use FreeRTOS in my program.