C/C++
[SOLVED - BUG] g++ strange "errors"
12
8426
View: 8426|Reply: 12
|
[C/C++]
[SOLVED - BUG] g++ strange "errors"
[Copy link]
|
|
Edited by AlterX at Fri Jan 16, 2015 07:43
Hello all,
I am trying to compile a mine library on the lastest banian version (v. 15.x). Same code compiles well on linux, android, blackberry, iphone and macosx.
Here is the result:
g++ -fPIC -O2 -shared -DLINUX -Wl,-soname,libSolomon_v2.so -ldl -lpthread -I./ *.cpp -o /home/libSolomon_v2.so
AbstractTcpServerGame.cpp: In function âvoid* StartTcpSupportedServer(void*)â:
AbstractTcpServerGame.cpp:143:54: warning: passing NULL to non-pointer argument 2 of âTInfoConn::TInfoConn(in_addr_t, integer)â [-Wconversion-null]
CSocket.cpp: In static member function âstatic integer CSocket::SendTcpSegment(sock, buffer_pointer, size_t)â:
CSocket.cpp:226:24: warning: unknown escape sequence: '\-' [enabled by default]
In file included from GameClientClass.h:19:0,
from GameClientClass.cpp:12:
Solomon.h:43:0: warning: "FALSE" redefined [enabled by default]
GameClientClass.h:16:0: note: this is the location of the previous definition
In file included from GameServerClass.h:21:0,
from GameServerClass.cpp:13:
Solomon.h:43:0: warning: "FALSE" redefined [enabled by default]
GameServerClass.h:18:0: note: this is the location of the previous definition
/tmp/ccsWFlcF.o(.data.rel.ro+0x30): multiple definition of `typeinfo for Solomon::Types::IBaseType<unsigned short>'
/tmp/cc0bVzgv.o(.data.rel.ro+0x14): first defined here
/tmp/ccsWFlcF.o(.data.rel.ro+0x38): multiple definition of `typeinfo for Solomon::Types::IBaseType<short>'
/tmp/cc0bVzgv.o(.data.rel.ro+0x1c): first defined here
/tmp/ccsWFlcF.o(.data.rel.ro+0x40): multiple definition of `typeinfo for Solomon::Types::IBaseType<unsigned long>'
/tmp/cc0bVzgv.o(.data.rel.ro+0x24): first defined here
/tmp/ccsWFlcF.o(.data.rel.ro+0x48): multiple definition of `typeinfo for Solomon::Types::IBaseType<unsigned int>'
/tmp/cc0bVzgv.o(.data.rel.ro+0x2c): first defined here
/tmp/ccsWFlcF.o(.data.rel.ro+0x50): multiple definition of `typeinfo for Solomon::Types::IBaseType<int>'
/tmp/cc0bVzgv.o(.data.rel.ro+0x34): first defined here
/tmp/ccsWFlcF.o .data.rel.ro+0x58): multiple definition of `typeinfo for Solomon::Types::IBaseType<float>'
/tmp/cc0bVzgv.o .data.rel.ro+0x3c): first defined here
/tmp/ccsWFlcF.o .data.rel.ro+0x60): multiple definition of `typeinfo for Solomon::Types::IBaseType<unsigned char>'
/tmp/cc0bVzgv.o .data.rel.ro+0x44): first defined here
/tmp/ccsWFlcF.o .rodata+0x24): multiple definition of `typeinfo name for Solomon::Types::IBaseType<unsigned short>'
/tmp/cc0bVzgv.o .rodata+0x15c): first defined here
/tmp/ccsWFlcF.o .rodata+0x44): multiple definition of `typeinfo name for Solomon::Types::IBaseType<short>'
/tmp/cc0bVzgv.o .rodata+0x17c): first defined here
/tmp/ccsWFlcF.o .rodata+0x64): multiple definition of `typeinfo name for Solomon::Types::IBaseType<unsigned long>'
/tmp/cc0bVzgv.o .rodata+0x19c): first defined here
/tmp/ccsWFlcF.o:(.rodata+0x84): multiple definition of `typeinfo name for Solomon::Types::IBaseType<unsigned int>'
/tmp/cc0bVzgv.o:(.rodata+0x1bc): first defined here
/tmp/ccsWFlcF.o:(.rodata+0xa4): multiple definition of `typeinfo name for Solomon::Types::IBaseType<int>'
/tmp/cc0bVzgv.o:(.rodata+0x1dc): first defined here
/tmp/ccsWFlcF.o:(.rodata+0xc4): multiple definition of `typeinfo name for Solomon::Types::IBaseType<float>'
/tmp/cc0bVzgv.o:(.rodata+0x1fc): first defined here
/tmp/ccsWFlcF.o:(.rodata+0xe4): multiple definition of `typeinfo name for Solomon::Types::IBaseType<unsigned char>'
/tmp/cc0bVzgv.o:(.rodata+0x21c): first defined here
collect2: ld returned 1 exit status
I don't understand what the error can be since there is no "real" error message.
Thanks |
|
|
|
|
|
|
|
I want you to thank me for taking the time to write such great articles! I certainly enjoy it little by little and I have bookmarked your site to test new things of your blog.
Temple run |
|
|
|
|
|
|
|
Thank you for this update. I always like to read posts that share useful information.
super fighters 2 |
|
|
|
|
|
|
|
very interesting post.this is my first-time visit here. I found so many interesting stuff in your blog especially its discussion..thanks for the post! Stunning Delhi Escorts Females |
|
|
|
|
|
|
|
Nice to read the information here. The content of this post is very useful and informative
read manga online |
|
|
|
|
|
|
|
I was searching for this forum for a long time and I know you have many different ideas to share with us.
Delhi Escorts Service |
|
|
|
|
|
|