Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
*NEW*
Current Version on
STEAM
:
16.026
Logfile:
EN
,
DE
Webchat:
Visit the chat
Home
Help
Search
Login
Register
GLBasic forum
»
Main forum
»
GLBasic - en
»
Linking GLBasic project to external .o library
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Linking GLBasic project to external .o library (Read 1555 times)
backspace
Mr. Drawsprite
Posts: 53
Linking GLBasic project to external .o library
«
on:
2012-Dec-26 »
I can include "c" header files within an INCLUDE statement. However, is it possible to link to an external (gcc .a / .o) library, in order to use that library's functions in my compiled project? If possible, how?
Thanks in advance.
Logged
I came, I saw, I coded.
hardyx
Community Developer
Prof. Inline
Posts: 505
Re: Linking GLBasic project to external .o library
«
Reply #1 on:
2012-Dec-26 »
I think you can pass parameters to the linker in Project > Options > Platform configuration > lnk and type -lname. The library must be in the form libname.a and only can be compiled for the platform of the .a object. For example, if the .a is compiled for pc (intel cpu) you can't compile for iPhone with uses ARM cpu.
Logged
Mi blog Bits de Ocio
backspace
Mr. Drawsprite
Posts: 53
Re: Linking GLBasic project to external .o library
«
Reply #2 on:
2012-Dec-27 »
So if I wish to link to 'libddraw.a' I would add '-llibddraw.a' in the lnk text area. I think I get it.
Thanks hardyx.
Logged
I came, I saw, I coded.
Print
Pages: [
1
]
Go Up
« previous
next »
GLBasic forum
»
Main forum
»
GLBasic - en
»
Linking GLBasic project to external .o library