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
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
> 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
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