Re: [fpc-pascal] Shared libries

2011-12-12 Thread Tomas Hajny
On 12 Dec 11, at 17:17, nore...@z505.com wrote: > > On 12 Dec 2011, at 19:56, nore...@z505.com wrote: > > > >> procedure proc1; stdcall; > >> begin > >> writeln('hello'); > >> end; exports proc1; > >> > >> procedure proc2; stdcall; > >> begin > >> writeln('hello 2'); > >> end; exports proc2; > >>

Re: [fpc-pascal] Shared libries

2011-12-12 Thread noreply
> > On 12 Dec 2011, at 19:56, nore...@z505.com wrote: > >> procedure proc1; stdcall; >> begin >> writeln('hello'); >> end; exports proc1; >> >> procedure proc2; stdcall; >> begin >> writeln('hello 2'); >> end; exports proc2; >> >> >> end. >> >> >> Notice how I put exports in several places... >>

Re: [fpc-pascal] Shared libries

2011-12-12 Thread noreply
> >> >> >> Well maybe ExportAll compiler feature should be suggested? >> >> But please try this >> >> unit Unit1; >> >> {$mode objfpc}{$H+} >> >> interface >> >> procedure proc1; stdcall; >> procedure proc2; stdcall; >> >> implementation >> >> >> procedure proc1; stdcall; >> begin >>writeln('he

Re: [fpc-pascal] Shared libries

2011-12-12 Thread Torsten Bonde Christiansen
Well maybe ExportAll compiler feature should be suggested? But please try this unit Unit1; {$mode objfpc}{$H+} interface procedure proc1; stdcall; procedure proc2; stdcall; implementation procedure proc1; stdcall; begin writeln('hello'); end; exports proc1; procedure proc2; stdcall

Re: [fpc-pascal] Shared libries

2011-12-12 Thread Jonas Maebe
On 12 Dec 2011, at 20:17, Torsten Bonde Christiansen wrote: > On 2011-12-12 20:04, Jonas Maebe wrote: >> It only partially works. Please see the bug report I mentioned earlier: >> http://bugs.freepascal.org/bug_view_advanced_page.php?bug_id=16070 > > Does this just mean I have to compile my lib

Re: [fpc-pascal] Shared libries

2011-12-12 Thread Torsten Bonde Christiansen
On 2011-12-12 20:04, Jonas Maebe wrote: On 12 Dec 2011, at 19:56, nore...@z505.com wrote: procedure proc1; stdcall; begin writeln('hello'); end; exports proc1; procedure proc2; stdcall; begin writeln('hello 2'); end; exports proc2; end. Notice how I put exports in several places... It

Re: [fpc-pascal] Shared libries

2011-12-12 Thread Jonas Maebe
On 12 Dec 2011, at 19:56, nore...@z505.com wrote: > procedure proc1; stdcall; > begin > writeln('hello'); > end; exports proc1; > > procedure proc2; stdcall; > begin > writeln('hello 2'); > end; exports proc2; > > > end. > > > Notice how I put exports in several places... > > It works on

Re: [fpc-pascal] Shared libries

2011-12-12 Thread noreply
> On 2011-12-12 00:48, nore...@z505.com wrote: >> >>> Ok, thanks for clearifying that. I guess it's going to be a lot of >>> include files instead... :) >>> >>> -Torsten. >> >> >> Why do you need include files in your case? >> You can put the units in the uses clause of your library. > Because it i

[fpc-pascal] News from MSEide+MSEgui

2011-12-12 Thread Martin Schreiber
Hi, MSEide+MSEgui 2.8rc1 for FPC 2.6 has been released: http://sourceforge.net/projects/mseide-msegui/files/mseide-msegui/2.8rc1/ There is also a new beta for MSEgit: http://gitorious.org/mseuniverse/mseuniverse/trees/msegit_release_0_8_2/tools/msegit A screenshot is here: http://mseide-msegu

Re: [fpc-pascal] fpc 2.6.0-rc1 for arm-embedded

2011-12-12 Thread Koenraad Lelong
On 09-12-11 00:09, Den Jean wrote: On Thursday 08 December 2011 13:49:16 Koenraad Lelong wrote: > /usr/lib/fpc/2.6.0/units/arm-embedded/rtl/system.o does not support > interworking, whereas test-1.elf does does this thread help ? http://lists.freepascal.org/lists/fpc-devel/2011-August/02561