Re: Adding a custom library to l4/pkg/bootstrap

Jan Bierbaum <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <[email protected]>
On 02.09.2014 13:32, Masti Ramya Jayaram wrote:
> However, now I am trying to call a function in the library through an
> included header file (which is part of the library) and it fails
> (undefined reference).
Could you give the *exact* error message? BTW, this is something you 
should always do if you want people to be able to help you ;-)

My guess at this point would be that the undefined reference is not your 
'hello' function but 'printf'...

> I made sure that I am indeed using the extern "C" directive. I also
> tried putting the function declaration in here instead of the header
> file itself but it does not help.
The function declaration is not the problem here. If it was, the 
compiler would give you an error along the lines of "'hello' was not 
declared in this scope".


Regards, Jan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.