Re: Undefined reference to custom function in separate header and c files

2012-06-06 Thread Dave Shield
On 23 May 2012 21:08, Ricardo Hillbrecht wrote: > I'm building a custom MIB using MFD code style. I'd written custom > functions in separate .c and .h files, this files are in the same > folder as the file that uses them (xxxTable_data_access.h). > I think the .c and .h files with the custom func

Re: Undefined reference to custom function in separate header and c files

2012-05-29 Thread Ricardo Hillbrecht
I´m already using --with-libs="-l", but it think it applies to standard libs, not worded to custom .c and .h files, and these files won´t be visible in the whole agent compilation, they are used by one single table. Maybe the correct is to use LDFLAGS of configure script, but I could´t find an

Re: Undefined reference to custom function in separate header and c files

2012-05-29 Thread Dave Shield
On 23 May 2012 21:08, Ricardo Hillbrecht wrote: > When i call "make", to compile the custom MIB within the agent, I get > an "undefined reference" error: > > ./.libs/libnetsnmpmibs.so: undefined reference to `customFunction' > collect2: ld returned 1 exit status > > I think the .c and .h files wit