Gentlefolk,
Totally new to the world of C C++, compilers and linkers.
I am attempting to compile and build some demonstration application code which access BlueTooth devices.
Have all the .C, .H files, also a .lib.
Using the LCC c ide-compiler-linker, etc on Windows-32
Compile one module - no errors.
Link the module and get a raft of undefined errors, an example:
"undefined reference to '_fred' "
'Fred' is defined in the .c file as "void Fred(void);".
I have done some research and for historical reasons some C type compilers prepend underscores to "external" symbols.
An inspection of the provided .lib file shows a number of "_Fred" symbols, unfortunately I do not have a definition of the .lib file structure to work out if things are OK. The .lib file is accessed during the link process. "Fred" and "_Fred" do not appear in a .map file.
My problem is I cannot find out how to get the linker to resolve this undefined, or perhaps stop the compiler generating such a symbol.
Any thoughts, ideas or directions appreciated.
iru, Melbourne, Australia.