hi oBFusCATed,
Why it is so hard for you to cooperate?
I use this public pc outside my home to get on the net. My working-pc is at home. That does make communication somewhat slow and inconvenient as for just handing info over on request. The separation is a bliss for my general mood though.
My initial question is a bit unimportant since I've got something to work. I ought to have tried to gain more experience on the subject before asking in here. When I requested a 'shared library' I got something very much like this
// this dummy function /will/ be accessible in your new library
extern "C"
{
main()
{
int add( int a , int b )
{
return a + b ;
}
}
}
After establishing a console project and linking to the library I could use 'add(..)' if I added
#include <main.h>
as any other directive I would use in a project.
And I bet you know the type of error-report you get if you take such a directive away, because we've all seen it so often.
I'm not kean on using
main
as the name of a library, but that's a minor inconvenience.
As for valid c/c++ it's much better than it used to be .. I've got 3-4000 pages to support me at home.
Code::Blocks is an impressive project