Open jeremieweldin opened 8 years ago
There is currently an issue with Raknet & Swig because the operator + is declared for the RakWString class, but not implemented. That's not an issue when compiling the cpp library because the operator is never used (so the compiler doesn't need it). However, swig creates wrappers for every available symbols, including the operator.
The solution: Remove the operator+(RakNet::RakWString const&, RakNet::RakWString const&)
declaration from rakwstring.h and regenerate the swig library.
Thanks!
I'm trying to build the C# wrappers on Mac OS X.
This is what I get: `Jeremies-MacBook-Air:~ jeremieweldin$ cd Projects/RakNet/DependentExtensions/Swig/ Jeremies-MacBook-Air:Swig jeremieweldin$ ./MakeSwig.sh /Users/jeremieweldin/Projects/RakNet/Source/ Performing Swig build without SQLiteClientLogger /Users/jeremieweldin/Projects/RakNet/Source/RakNetDefines.h:28: Warning 305: Bad constant value (ignored). /Users/jeremieweldin/Projects/RakNet/Source/RakPeer.h:57: Warning 401: Nothing known about base class 'RNS2EventHandler'. Ignored. /Users/jeremieweldin/Projects/RakNet/Source/NatTypeDetectionClient.h:45: Warning 401: Nothing known about base class 'RNS2EventHandler'. Ignored. /Users/jeremieweldin/Projects/RakNet/Source/NatTypeDetectionServer.h:55: Warning 401: Nothing known about base class 'RNS2EventHandler'. Ignored. /Users/jeremieweldin/Projects/RakNet/Source/RakWString.h:40: Warning 503: Can't wrap 'operator wchart' unless renamed to a valid identifier. Swig build complete Removing and replacing the sample cs files with fresh ones mv: rename ./SwigLinuxCSharpSample/TestMain.cs to ./SwigLinuxCSharpSample/TestMain.txt: No such file or directory rm: ./SwigLinuxCSharpSample/_.cs: No such file or directory mv: rename ./SwigLinuxCSharpSample/TestMain.txt to ./SwigLinuxCSharpSample/TestMain.cs: No such file or directory usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory Building the Swig Dynamic Link Building without SQLiteClientLogger DirectoryDeltaTransfer.cpp:45:21: warning: address of array 'onFileStruct->fileName' will always evaluate to 'true' [-Wpointer-bool-conversion] if (onFileStruct->fileName && onFileStruct->fileData && ...