Hi,Unfortunately, due to the provenance of 26compat and legacy drivers as
someone can help me with this issue?
i have this sample code:
using namespace std;
cout << mongo::curTimeMillis64() << endl;
and compile with:This looks fine.
g++ -I/tmp/include prova.cpp -o prova -L/tmp/lib -lmongoclient
the result is:I use the 26compat of mongo cxx driver and i have also check with nm the
/tmp/ccH0vDvx.o: In function `main':
prova.cpp:(.text+0x5): undefined reference to `mongo::curTimeMillis64()'
collect2: error: ld returned 1 exit status
symbols within the library:
The fact that the 't' next to the curTimeMillis64 is lowercase indicates
nm /tmp/lib/libmongoclient.so | grep curTime
00000000000ea510 t _ZN5mongo13curTimeMicrosEv
00000000000ea4f0 t _ZN5mongo15curTimeMicros64Ev
00000000000ea440 t _ZN5mongo15curTimeMillis64Ev
everything seems to be ok but the compile fails. Any suggestions?