If you can wait a few days, I'll extract a working windows/linux demo
from my sourcode for you. Right now I'm really busy.
- PŮVODNÍ ZPRÁVA -
Od: "Graeme Geldenhuys"
Komu: "FPC-Pascal users discussions"
Předmět: Re: [fpc-pascal] playing sound files (linux and windows)
Datum: 15.6.2010 -
YES! Thank you very much. You saved my day (maybe more of them, if I
had to rewrite all the pascal code to C) :)
> Ah, sorry, that would be for the other direction =)
>
> This one should work:
>
> function aplusb(a,b:longint):longint;cdecl; public
> name '_aplusb';
>
> --
> Felipe Monteiro de
I probably just found a way!
alias '_aplusb';
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Hi a thank you for quick reply, but I've tried that before:
Fatal: Syntax error, ";" expected but "identifier NAME" found
Could it be mode dependant? (I use -Mobjfpc)
V.
> It's normal name mangling, just like C++ also does.
> To force a
> specific name try something like this:
>
> function apl
Hi,
is it possible to link FPC compiled units to a C program on Linux?
I'm not able to figure it out.
FPC uses some strange way to name symbols and whatever I try, I always
end up with the linking errors.
I'm probably doing some trivial error, but I just can't find it.
Simple function:
function
.
3. many libraries (general/graphic/sound/db/etc.) are NOT thread safe
That's why I prefer non-blocking single thread solutions.
vtech
ME> It's fast and responsive and we only have to worry about
ME> sharing data between threads, or use non-blocking code and t
s:
ioctl(Sock,FIONBIO,@tmp); // nonblocking
All but one applications are single thread.
I'm using standard Socket/Bind/Listen/Accept/Connect socekt functions.
vtech
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepasc