Link error of sio2Init and sio2Shutdown with v1.4
3 posters
Link error of sio2Init and sio2Shutdown with v1.4
Hi.
I have used the SIO2 engine by making a static library 'libsio2.a' from the source code according to the pose here :
http://blog.lyxite.com/2009/01/better-way-of-using-sio2-iphone-sdk.html
and, there has been no problem.
However, after I updated the engine to v1.4, I got the following link error.
The libsio2.a is built with no errors, ( I didn't use the pre-built library (libsio2_sim/dev.a)
but my application shows the error.
(I'm using an iPhone 3G with firmware 2.2.1. )
Undefined symbols:
"_sio2Shutdown", referenced from:
templateShutdown() in template.o
"_sio2Init", referenced from:
-[EAGLView createFramebuffer] in EAGLView.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
"_sio2Shutdown", referenced from:
templateShutdown() in template.o
"_sio2Init", referenced from:
-[EAGLView createFramebuffer] in EAGLView.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I think there is no implementation of both sio2Init and sio2Shutdown in the directory of SDK_DIR/src/sio2.
How could I solve the problem ?
I have used the SIO2 engine by making a static library 'libsio2.a' from the source code according to the pose here :
http://blog.lyxite.com/2009/01/better-way-of-using-sio2-iphone-sdk.html
and, there has been no problem.
However, after I updated the engine to v1.4, I got the following link error.
The libsio2.a is built with no errors, ( I didn't use the pre-built library (libsio2_sim/dev.a)
but my application shows the error.
(I'm using an iPhone 3G with firmware 2.2.1. )
Undefined symbols:
"_sio2Shutdown", referenced from:
templateShutdown() in template.o
"_sio2Init", referenced from:
-[EAGLView createFramebuffer] in EAGLView.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
"_sio2Shutdown", referenced from:
templateShutdown() in template.o
"_sio2Init", referenced from:
-[EAGLView createFramebuffer] in EAGLView.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I think there is no implementation of both sio2Init and sio2Shutdown in the directory of SDK_DIR/src/sio2.
How could I solve the problem ?
WonwooLee- Posts : 5
Join date : 2009-06-03
Re: Link error of sio2Init and sio2Shutdown with v1.4
Did u recreate and re-add files in the project (in xcode) or just drop in finder ? That might make a difference...
goldfrapp0x0309- Posts : 43
Join date : 2009-02-28
Re: Link error of sio2Init and sio2Shutdown with v1.4
namar777 wrote:Did u recreate and re-add files in the project (in xcode) or just drop in finder ? That might make a difference...
Hi, I added the src folder to the project for static library through Add->Existing files menu.
So the project tree is something like this...
project
|-src
|------ lua
|------ sio2
|------ ....
WonwooLee- Posts : 5
Join date : 2009-06-03
Re: Link error of sio2Init and sio2Shutdown with v1.4
Seems that the unlinked functions are from the sio2.cc file....
goldfrapp0x0309- Posts : 43
Join date : 2009-02-28
Re: Link error of sio2Init and sio2Shutdown with v1.4
The functions are contained in libsio2_dev & libsio2_sim make sure that you link them with your static library...
Re: Link error of sio2Init and sio2Shutdown with v1.4
Hi.
Linking with libsio2_dev.a or libsio2_sim.a seems to solve my problem. Thank you for comments.
Are these two files static libraries of the whole sio2 (I mean the codes in src/sio2 directory) ?
(If so, I may not need to compile the codes in src/sio2 when I build my static library. Just linking with these two may work.)
Or, are they just containing the implementation of sio2Init() and sio2Shutdown() ?
Linking with libsio2_dev.a or libsio2_sim.a seems to solve my problem. Thank you for comments.
Are these two files static libraries of the whole sio2 (I mean the codes in src/sio2 directory) ?
(If so, I may not need to compile the codes in src/sio2 when I build my static library. Just linking with these two may work.)
Or, are they just containing the implementation of sio2Init() and sio2Shutdown() ?
WonwooLee- Posts : 5
Join date : 2009-06-03
Re: Link error of sio2Init and sio2Shutdown with v1.4
Its only the initialization and the shutdown as well as the certificate recognition code... as you can see its only 80k so... pretty small...
WonwooLee- Posts : 5
Join date : 2009-06-03
Similar topics
» sio2init, sio2initgl, etc
» Can't link to the OpenAL lib
» Python Error
» v1.2 Tutorial 08 error
» btPoolAllocator error
» Can't link to the OpenAL lib
» Python Error
» v1.2 Tutorial 08 error
» btPoolAllocator error
Permissions in this forum:
You cannot reply to topics in this forum