Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who is Online
7 user(s) are online (4 user(s) are browsing Forum)

Members: 0
Guests: 7

more...


Browsing this Thread:   1 Anonymous Users






Re: Using a C++ compiled .a library
#4
Home away from home
Home away from home


See User information
Quote:
Well, it's a bunch of header files, ~20 or so.

That sounds like a fair bit of work, unless they are small header files? Also procedures tend to be more work than constants, objects, etc.

Without seeing them myself, it's a bit hard to guage how much work it would be. I can send you my semi-automated tool, if you wish to try to do it yourself?

Posted on: 2016/2/28 16:06
ChrisH
--
Author of the PortablE programming language.
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Using a C++ compiled .a library
#3
Quite a regular
Quite a regular


See User information
Well, it's a bunch of header files, ~20 or so.


Manfred

Posted on: 2016/2/28 15:59
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Using a C++ compiled .a library
#2
Home away from home
Home away from home


See User information
If you have a matching C header file (.h), and the .a file can be used with G++ (C++ GCC), then yes, it is possible to use it with PortablE. You'd need to (1) create a special module (.e) that matches the header file, and then (2) give PEGCC the right GCC parameter to tell it to use the .a file.

Creating the special module is quite an advanced topic. The basics are covered in chapter 20. Advanced usage - accessing native OS/language elements, but even once you are familiar with them it can still be a laborious process, which is why I created a tool to partially automate the process (the generated file still needs cleaning-up & hence you still need to understand the basics).

While I could potentially send you the tool, it might be simpler for me to take the header files & do the conversion for you (depending on complexity of the header).

Posted on: 2016/2/25 16:34
ChrisH
--
Author of the PortablE programming language.
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Using a C++ compiled .a library
#1
Quite a regular
Quite a regular


See User information
Hi.

Another question.

For a project I need to use a library that I have compiled from source.
The result is a (noixemul) .a library.
How can I use that that in PortablE?


Manfred

Posted on: 2016/2/23 20:20
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 







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.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4462
2 nikolaos
nikolaos
4206
3 magorium
magorium
4095
4 phoenixkonsole
phoenixkonsole
3942
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2810
7 mazze
mazze
2222
8 Kalamatee
Kalamatee
2212
9 clusteruk
clusteruk
2114
Powered by XOOPS © 2001-2025 The XOOPS Project