From: INGLESE G. <gui...@c-...> - 2004-06-23 15:43:39
|
hi all, i go a little further in the creation of the JNI dll. previous error on C:/Progra~1/Developpement/MinGW/include/semaphore.h:146: type specifier omitted for parameter `mode_t' C:/Progra~1/Developpement/MinGW/include/semaphore.h:146: parse error before`,' token was removed by adding below definition in semaphore.h : #ifndef _MODE_T_ #define _MODE_T_ typedef unsigned short _mode_t; #ifndef _NO_OLDNAMES typedef _mode_t mode_t; #endif #endif /* Not _MODE_T_ */ now at the link step i have multiple definition error : gcc -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at -I/mingw/include -IC:/TempIns tall/EuroSim/incl ude -IC:/TempInstall/EuroSim/include/esim -IC:/Progra~1/Developpement/j2sdk1 .4.2_03/include/win 32 -IC:/Progra~1/Developpement/j2sdk1.4.2_03/include -shared -o RpDictionary.dll rapidprototyp ing_simulationmapper_RpSimulationDictionary.cpp -L/mingw/lib -LC:/TempInstal l/EuroSim/lib -LC:/ TempInstall/EuroSim/lib/esim -LC:/TempInstall/EuroSim/lib/esim -LC:/Progra~1 /Developpement/j2sd k1.4.2_03/Lib rapidprototyping_simulationmapper_RpSimulationDictionary.cpp -lesClient -les -lst dc++ -ldict -lpthreadGC -lmpr rapidprototyping_simulationmapper_RpSimulationDictionary.cpp: In function `jboolean Java_rapidprototyping_simulationmapper_RpSimulationDictionary_parse(JNIEnv*, _jobject*, _jstring*)': rapidprototyping_simulationmapper_RpSimulationDictionary.cpp:32: warning: comparison between signed and unsigned integer expressions rapidprototyping_simulationmapper_RpSimulationDictionary.cpp: In function `jboolean Java_rapidprototyping_simulationmapper_RpSimulationDictionary_parse(JNIEnv*, _jobject*, _jstring*)': rapidprototyping_simulationmapper_RpSimulationDictionary.cpp:32: warning: comparison between signed and unsigned integer expressions C:/DOCUME~1/ginglese/LOCALS~1/Temp/cc8saaaa.o(.text+0x12):rapidprototyping_s imulationmapper_RpSimulationDictionary.cpp: multiple definition of `Java_rapidprototyping_simulationmapper_RpSimulationDictionary_parse@12' C:/DOCUME~1/ginglese/LOCALS~1/Temp/ccOmaaaa.o(.text+0x12):rapidprototyping_s imulationmapper_RpSimulationDictionary.cpp: first defined here C:/DOCUME~1/ginglese/LOCALS~1/Temp/cc8saaaa.o(.text+0x288):rapidprototyping_ simulationmapper_RpSimulationDictionary.cpp: multiple definition of `Java_rapidprototyping_simulationmapper_RpSimulationDictionary_getVariablesN ame@8' C:/DOCUME~1/ginglese/LOCALS~1/Temp/ccOmaaaa.o(.text+0x288):rapidprototyping_ simulationmapper_RpSimulationDictionary.cpp: first defined here C:/DOCUME~1/ginglese/LOCALS~1/Temp/cc8saaaa.o(.text+0x294):rapidprototyping_ simulationmapper_RpSimulationDictionary.cpp: multiple definition of `Java_rapidprototyping_simulationmapper_RpSimulationDictionary_getVariablesT ype@8' C:/DOCUME~1/ginglese/LOCALS~1/Temp/ccOmaaaa.o(.text+0x294):rapidprototyping_ simulationmapper_RpSimulationDictionary.cpp: first defined here C:/DOCUME~1/ginglese/LOCALS~1/Temp/cc8saaaa.o(.bss+0x0):rapidprototyping_sim ulationmapper_RpSimulationDictionary.cpp: multiple definition of `mVariables' C:/DOCUME~1/ginglese/LOCALS~1/Temp/ccOmaaaa.o(.bss+0x0):rapidprototyping_sim ulationmapper_RpSimulationDictionary.cpp: first defined here C:/DOCUME~1/ginglese/LOCALS~1/Temp/cc8saaaa.o(.bss+0xc):rapidprototyping_sim ulationmapper_RpSimulationDictionary.cpp: multiple definition of `mVariablesType' C:/DOCUME~1/ginglese/LOCALS~1/Temp/ccOmaaaa.o(.bss+0xc):rapidprototyping_sim ulationmapper_RpSimulationDictionary.cpp: first defined here C:/DOCUME~1/ginglese/LOCALS~1/Temp/cc8saaaa.o(.bss+0x18):rapidprototyping_si mulationmapper_RpSimulationDictionary.cpp: multiple definition of `mVariablesNameArray' C:/DOCUME~1/ginglese/LOCALS~1/Temp/ccOmaaaa.o(.bss+0x18):rapidprototyping_si mulationmapper_RpSimulationDictionary.cpp: first defined here C:/DOCUME~1/ginglese/LOCALS~1/Temp/cc8saaaa.o(.bss+0x1c):rapidprototyping_si mulationmapper_RpSimulationDictionary.cpp: multiple definition of `mVariablesTypeArray' C:/DOCUME~1/ginglese/LOCALS~1/Temp/ccOmaaaa.o(.bss+0x1c):rapidprototyping_si mulationmapper_RpSimulationDictionary.cpp: first defined here any idea ? thanks. guillaume. |