Hi everybody, I have a problem trying to use function from a.cpp in b.ispc.
I read from guide about using extern for this but I keep getting errors.
I did following:
a.cpp:
int foo() {return 1};
int main() {
ispc::simple();
}
b.ispc:
extern int foo();
export void simple() {
print("%d\n", foo());
}
This is the error message i get:
simple_ispc.o: In function `simple___':
simple.ispc:(.text+0x939): undefined reference to `foo___'
simple_ispc.o: In function `simple':
simple.ispc:(.text+0x979): undefined reference to `foo___'
collect2: error: ld returned 1 exit status
What am I doing wrong, maybe this is not possible? If not what do you suggest, what are other options?
Thank you
--
You received this message because you are subscribed to the Google Groups "Intel SPMD Program Compiler Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ispc-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.