急!linux和windows编译环境问题
我在windows下编译的好好的,换到linux下面报错:
[image@szmlserver94_204 des]$ make clean;make
rm -f *~ *.o libtestxx.so
/usr/bin/g++ -I. -g -fPIC -I./ -I./include -I/modules/java/include -I/modules/java/include/linux -c -o Des.o Des.cpp
Des.cpp:403:2: warning: no newline at end of file
/usr/bin/g++ -I. -g -fPIC -I./ -I./include -I/modules/java/include -I/modules/java/include/linux -c -o DESAgent.o DESAgent.cpp
DESAgent.cpp: In function ‘void init()’:
DESAgent.cpp:86: error: ‘_tcstoul’ was not declared in this scope
DESAgent.cpp: In function ‘void loadClass(jvmtiEnv*, JNIEnv*, _jclass*, _jobject*, const char*, _jobject*, jint, const unsigned char*, jint*, unsigned char**)’:
DESAgent.cpp:164: error: ‘_tcstol’ was not declared in this scope
make: *** [DESAgent.o] Error 1
错误主要是:
‘_tcstoul’ was not declared in this scope
这个是一个把十六进制字符串转换成十进制数字的函数,_tcstoul在linux下用什么换掉啊?