Are there any good pointers to how to create libraries correctly that can be linked in C++ applications?
I've written a library that I want to access from C++ now. The library was written in pure C. Possibly the way I create the objects may be wrong.
1 2 3 4 5 6
[root@<DEVEL> ops]# g++ -o ver ./ver.c libRemoteNode/rn_version.o
/tmp/ccPm7utk.o: In function `main':
ver.c:(.text+0x12): undefined reference to `rn_version()'
collect2: ld returned 1 exit status
[root@<DEVEL> ops]# gcc -o ver ./ver.c libRemoteNode/rn_version.o
[root@<DEVEL> ops]#
ver.c is a simply C program that tests the linking.