[maemo-developers] Undefined reference error
From: Simon Pickering S.G.Pickering at bath.ac.ukDate: Fri May 14 11:31:37 EEST 2010
- Previous message: Undefined reference error
- Next message: Undefined reference error
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> On 2010-05-13 22:32, Pallavi Kandhare > <pallavi.kandhare at yahoo.com> wrote: > >Hi, > >I have 2 files : list1.h and list1.c, and I call some > functions defined in list1.h in main function of main.c. > >list1.h is included in both list1.c and main.c. > >Still i am getting the following error : > >/test1file/src/main.c undefined reference to function-name > > > >The list1.o file is not created. What changes do i need to > make to my Makefile in order to remove this error. > > It might be easier to use a build system that automatically > creates Makefiles for you, like autotools (more specifically, > automake for > Makefiles): Autotools sounds like overkill here, and even if using autotools, one ought to understand how a Makefile works to be able to sort out any niggles. I'd suggest posting a link to the files in question - Makefile, *.c, *.h and letting people take a look and comment on what's going wrong. Note that you should post a link as attachments are not allowed afaik. Cheers, Simon
- Previous message: Undefined reference error
- Next message: Undefined reference error
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]