Re: [fpc-pascal]problem linking with c

2003-12-23 Thread Michalis Kamburelis
Dean Zobec wrote: Hi, i tried to link a c function but had some problems: a simple example: in file cwrite.c #include void writestringinc(void); void writestringinc(void) { puts("This string is written using c"); fflush( stdout ); } compiled with c using g++ -c cwrite.c now, t

Re: [fpc-pascal]problem linking with c

2003-12-23 Thread Peter Vreman
> Hi, > i tried to link a c function but had some problems: > a simple example: > in file cwrite.c > > #include > > void writestringinc(void); > > void writestringinc(void) { > puts("This string is written using c"); > fflush( stdout ); > } > > compiled with c using > g++ -c cwrite

[fpc-pascal]problem linking with c

2003-12-23 Thread Dean Zobec
Hi, i tried to link a c function but had some problems: a simple example: in file cwrite.c #include void writestringinc(void); void writestringinc(void) { puts("This string is written using c"); fflush( stdout ); } compiled with c using g++ -c cwrite.c now, this is a test pr