[fpc-pascal] PIC returns in 2.4?
Hi, Currently the FAQ shows Position Independent Code generation is "currently broken" in the creation of shared libraries, (Future Plans shows 2.4 working to recover it). I tried to search the web site but the search system gives an error right now. Please, what version did PIC last work in for Linux and Windows? Does availability of testing PIC look far off or near future? Thanks always, Mike ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] PIC returns in 2.4?
On 18 Nov 2007, at 11:10, Florian Klaempfl wrote: Please, what version did PIC last work in for Linux PIC works in 2.2.0. Afaik it doesn't. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] PIC returns in 2.4?
Jonas Maebe schrieb: > > On 18 Nov 2007, at 11:10, Florian Klaempfl wrote: > >>> Please, what version did PIC last work in for Linux >> >> PIC works in 2.2.0. > > Afaik it doesn't. Are there any bug reports? x86-64 is afaik even build with pic. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] PIC returns in 2.4?
On 18 Nov 2007, at 11:29, Florian Klaempfl wrote: Jonas Maebe schrieb: On 18 Nov 2007, at 11:10, Florian Klaempfl wrote: Please, what version did PIC last work in for Linux PIC works in 2.2.0. Afaik it doesn't. Are there any bug reports? x86-64 is afaik even build with pic. x86_64 may work, but last time I tried cycle didn't even work on linux/ i386. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] PIC returns in 2.4?
[EMAIL PROTECTED] schrieb: > Hi, > > Currently the FAQ shows Position Independent Code generation is > "currently broken" in the creation of shared libraries, (Future Plans > shows 2.4 working to recover it). I tried to search the web site but > the search system gives an error right now. > > Please, what version did PIC last work in for Linux PIC works in 2.2.0. > and Windows? Windows needs no PIC. > Does availability of testing PIC look far off or near future? > > Thanks always, > Mike > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Converting StrLCopy to widestrings
Felipe Monteiro de Carvalho wrote: On Nov 17, 2007 1:25 PM, Marc Weustink <[EMAIL PROTECTED]> wrote: First question, why is the copying needed ? Why isn'tlpStrFile := PWChar(FileNameWide); simply enough ? IMO, you're copying way to much. That variable is only valid on the scope of the function, and we need something more permanent. I need to review the code in that area, imo it is not needed. anyway when is the allocateed memory freed ? Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: Re: [fpc-pascal] Linux : Using SDL with GTK2 ?
Thanks a LOT Andrew ! Your example is very nice ! Tom ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] PIC returns in 2.4?
[EMAIL PROTECTED] schrieb: Hi, Currently the FAQ shows Position Independent Code generation is "currently broken" in the creation of shared libraries, (Future Plans shows 2.4 working to recover it). I tried to search the web site but the search system gives an error right now. Please, what version did PIC last work in for Linux PIC works in 2.2.0. and Windows? Windows needs no PIC. Does availability of testing PIC look far off or near future? Ditto Windows PIC, but for cross platform API integrations, dlls/.so/ELF and (as in wrestling Win/x86 against *Nix /AMD-64). I was chasing some *Nix threading issues in 2.02, when I noted PIC stated in the FAQ, unsure how wide the scope of effect might be. I'm ending up evolving into this from growing success I've had using FPC in simpler related integrations and basically trying to find an escape from sockets as a bridge in some of my current work. I don't really want to fall back on rev levels if waiting on 2.4 might clean up things. So if PIC in 2.2 is also in question, (not at all trying to rush anyone), does it look like 2.4 will address this any time soon or it's just too soon to know? Thanks always, Mike ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Converting StrLCopy to widestrings
On Nov 18, 2007 2:11 PM, Marc Weustink <[EMAIL PROTECTED]> wrote: > I need to review the code in that area, imo it is not needed. I couldn't make it work without allocating. There is no permanent storage for the data available. > anyway when is the allocateed memory freed ? I noticed that it's nowhere freed. More parts allocate memory, but it's freed on DestroyHandle. I don't know if windows frees it, probably not. Also, I don't know if DestroyHandle for dialogs is called always after closing, so there are questions and this may be a point of memory leak. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] PIC returns in 2.4?
On Nov 18, 2007 11:10 AM, Florian Klaempfl <[EMAIL PROTECTED]> wrote: > > and Windows? > > Windows needs no PIC. Isn't PIC the same as relocatable code? Which would be activated by -WR as described on the item 3 here: http://wiki.lazarus.freepascal.org/FPC_and_Apache_Modules#Possible_problems I didn't test multiple apache modules with newer fpc versions, but that could be a problem. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] PIC returns in 2.4?
Felipe Monteiro de Carvalho schrieb: > On Nov 18, 2007 11:10 AM, Florian Klaempfl <[EMAIL PROTECTED]> wrote: >>> and Windows? >> Windows needs no PIC. > > Isn't PIC the same as relocatable code? No. PIC allows only to map the same physical mem page with program code at different virtual memory locations. > Which would be activated by > -WR as described on the item 3 here: > > http://wiki.lazarus.freepascal.org/FPC_and_Apache_Modules#Possible_problems > > I didn't test multiple apache modules with newer fpc versions, but > that could be a problem. > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal