Re: [fpc-pascal]problem linking with c

2003-12-24 Thread Dean Zobec
Michalis and Peter, ok, now it works :-), thank you! > You can view generated object file with nm or objdump commands - e.g. call >nm cwrite.o > and you will see that cwrite.o does not contain 'writestringinc' Thank you for the complete explanation, I didn' know for this tools. You know, I'm co

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