Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-08

RE: MySQL3, MySQL4, and MySql5 - Micha Might have answer

10 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jason P Sage

[Jason Peter Sage] In response to Jes?s Reyes question about where I looked for the MySQL5 unit....
[Jason Peter Sage] I did google search for MySQL5 and Freepascal - and mostly found my own FPC mailing list entries. I'm currently using FPC 2.0.2 so that may be why I'm a little out dated. I admittedly have never tried to compile the FPC compiler itself, but think I should some day to make sure I can do it on my most frequented platforms. To date, I tend to grab the official releases, because I'm not contributing on a FPC compiler level at all, and I'm making applications so I prefer the "FPC Team Approved" (and packaged) versions.

As far as contributions, I'm trying to figure out how to release some code that is part of a proprietary system, in a manner that can help the community at large without rendering the commercial product usurped.

I've released a lib in the past, but it has progressed in many ways that I think should be shared in whole or in part - as it has really helped me get a lot out of FPC.

I think it's great that the MySQL5 unit will be in the next release - hopefully the same release slated for August!

It was mentioned to me that this new release ALSO includes an important CRT unit fix for Linux that I'm very excited about. Why? Sometimes I need a plain, easy to write, UI that isn't about GFX as much as simplicity and portable. The CRT unit makes this a reality when its working. And let me add it has always worked to my knowledge - and just ended up with bug this (2.0.2 only I think) go around.

Thanks for Asking Jes?s
Jason P Sage

Reply by email

Jason P Sage

I have read some things here and there, but can anyone simply tell me if its now possible to write DLL's and Linux Shared Libraries with FPC now?

The last time I approached this topic, it was unsupported, and was still not really something that was ready for prime time.

Jason P Sage

Reply by email

Jason P Sage

Does anyone have any suggestions on where I should really start with making threads etc in a manner that will allow one code base but work on at least win32 and Linux?

I'm trying to make an application that is more or less acting like a daemon, that waits for a message from another process, and takes that information and begins processing it in a separate thread or process, allowing the main app to be already in a state ready to catch another message when it arrives and do the same thing.

In short, I'm trying to implement a "FAST-CGI" like (but not FASTCGI itself) thin layer CGI client, that gets a request, and passes the required info to a bigger application which actually does the work and then passes the resultant out going web page result back to the thin layer CGI app that then spits it out to the client.

Thanks in advance!
Jason P Sage

Reply by email

Felipe Monteiro de Carvalho
to Jason P Sage: Does anyone have any suggestions on where I should really start with making threads etc…
Jason P Sage wrote
Does anyone have any suggestions on where I should really start with making threads etc in a manner that will allow one code base but work on at least win32 and Linux?

There is a tutorial here:

http://wiki.lazarus.freepascal.org/index.php/Multithreaded_Application_Tutorial

And it should work on all supported platforms.

Felipe Monteiro de Carvalho

Reply by email

Leonardo M. Ram�
to Felipe Monteiro de Carvalho: I think this has being supported for a long time now. At least FPC 2.0.2 can build…

Yes, i've been writing Dlls and shared libs from 2.0.0

--- Felipe Monteiro de Carvalho wrote 13 lines
On 8/6/06, Jason P Sage wrote: > I have read some things here and there, but can anyone simply tell me if its > now possible to write DLL's and Linux Shared Libraries with FPC now? I think this has being supported for a long time now. At least FPC 2.0.2 can build libraries without any problems. -- Felipe Monteiro de Carvalho _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Leonardo M. Ramé
http://leonardorame.blogspot.com

__________________________________________________ Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Reply by email

Micha Nelissen
to Jason P Sage: I have read some things here and there, but can anyone simply tell me if its now possible…
Jason P Sage wrote 5 lines
I have read some things here and there, but can anyone simply tell me if its now possible to write DLL's and Linux Shared Libraries with FPC now? The last time I approached this topic, it was unsupported, and was still not really something that was ready for prime time.

Do you mean import/export of classes, etc. as well ? Procedural 'C-like' libraries have worked for a long time, as already stated.

Micha

Reply by email

Dominique Leducq
to Felipe Monteiro de Carvalho: I think this has being supported for a long time now. At least FPC 2.0.2 can build…
Felipe Monteiro de Carvalho wrote 8 lines
On 8/6/06, Jason P Sage wrote: > I have read some things here and there, but can anyone simply tell me > if its > now possible to write DLL's and Linux Shared Libraries with FPC now? I think this has being supported for a long time now. At least FPC 2.0.2 can build libraries without any problems.

I tried that with FPC 2.0.2 too, and it worked fine for win32 and linux-i386 (32 bits), but not for linux-x86_64, there was a problem with generating PIC (Position Independent Code). It worked with FPC 2.1.1 (devel branch), though. I didn't give a try at FPC 2.0.4 yet, so I don't know...

Dominique

Reply by email

Peter Vreman
to Dominique Leducq
Show quoted text 7 lines
> I think this has being supported for a long time now. At least FPC > 2.0.2 can build libraries without any problems. I tried that with FPC 2.0.2 too, and it worked fine for win32 and linux-i386 (32 bits), but not for linux-x86_64, there was a problem with generating PIC (Position Independent Code). It worked with FPC 2.1.1 (devel branch), though. I didn't give a try at FPC 2.0.4 yet, so I don't know...

PIC support is in 2.1.1 only and will not be merged back to 2.0.x.

Reply by email