----- Original Message -----
From: "second axiom" <[EMAIL PROTECTED]>
.
.
What I'm trying to accomplish seems to be a combination or modification of
current options, a concatenation of a source file and the Inline::C code
I have in the script:
use Inline (C => 'C/myCcode.c', <<ENDC);
[new C code here]
ENDC
I ran the following script:
----------------------------
use warnings;
use Inline C => 'src/myCcode.c';
use Inline C => <<'EOC';
void again() {
printf("Hello again\n");
}
EOC
greet();
again();
----------------------------
It outputs:
Hello from myCcode.c
Hello again
OR a concatenation of two source files:
use Inline (C => 'C/myCcode.c', 'C/moreC.c');
I found I could achieve that with:
------------------------------------
use warnings;
use Inline C => 'src/myCcode.c';
use Inline C => 'src/moreC.c';
greet();
again();
-----------------------------------
where src/moreC.c contains the again() function. Again, that outputs:
Hello from myCcode.c
Hello again
Does that help ?
(I've yet to check whether Patrick's suggestion works - but I expect it
does.)
Cheers,
Rob