Browsing this Thread:
1 Anonymous Users
|
Re: Compile a shared library
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Also if possible, try to avoid -fPIC. Since AROS gcc does not normally create shared libs, fPIC may not be fully supported. And the _GLOBAL_OFFSET_TABLE_ symbol is probably coming from -fPIC.
Posted on: 2017/8/7 2:05
|
|||
|
||||
|
Re: Compile a shared library
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
In addition to what was already written, you could perhaps take a look at how ALB42 made some (simple) shared test example libraries (here). Originally they were made for testing with Free Pascal but since they are shared libraries they can be used from whatever programming language.
Required information is detailed in the readme, and makefiles are present (to build a library 'outside' the normal build-system).
Posted on: 2017/8/6 5:23
|
|||
|
||||
|
Re: Compile a shared library
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Sorry I don't know much about Aros .so files, but this link to Aros dll stuff from BSzili may help.
https://github.com/BSzili/aros-stuff/tree/master/dll
Posted on: 2017/8/6 2:43
|
|||
|
||||
|
Re: Compile a shared library
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Amiga/Aros styles libraries are very different than windows and linux libs.
See documentation http://aros.sourceforge.net/documentation/developers/sys-dev/libraries.php And if you used c++, there is not yet c++ support on our shared library system. I have been asking it as I'm not that good coder to implement it, but those who know how has little interest to do it.
Posted on: 2017/8/2 8:46
|
|||
|
||||
|
Compile a shared library
|
||||
|---|---|---|---|---|
|
Quite a regular
![]()
|
Hello,
I am the author of Nano VM, it is a virtual machine. I found out that an older version is included in the current Icaros Desktop Distribution. :) Now I am working to port the current version of Nano VM. My VM can load shared libraries (.so) on Linux and Windows. And this is my question: how can I compile a shared library with AROS gcc? I tried this on Icaros Desktop gcc compiler: gcc -Wall -fpic -c *.c gcc -Wl,-soname,libtest.so.1 -o libtest.so.1.0 *.o I got this message: There are undefined symbols in 'libtest.so.1.0' load_page main _GLOBAL_OFFSET_TABLE_ ThreadBase save_page Ok, load_page and save_page are the virtual memory functions in my VM. They are called by the shared library. How can I tell the linker that it should build a shared library like on say Linux (.so)?
Posted on: 2017/8/2 7:27
|
|||
|
||||
You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.






