-paul
I can think of a few things that you might have wrong:
a) The function is a C++ one (in which case its name will have been
mangled - usrAppInit is C and won't handle that, but the shell will).
b) Depending on the exact error you are getting, it could be that you
are missing the prototype for the function in the place where the
usrAppInit code is defined.
c) You have mistyped the name in usrAppInit (sounds silly, but I've
seen subtle typos leave people puzzled for hours)
As for solutions, well (a) can be solved using the extern "C" { ... }
wrapper around the function (or providing such a wrapper in the C++
code that calls your original routine). Solve (b) by making sure that
you include a prototype for the function you are calling in your code.
I will leave the solution for (c) as an exercise for the reader ;-)
HTH,
John...
=====
Contribute to the VxWorks Cookbook at: http://books.bluedonkey.org/
That was it. Put in extern "C" and it cleared right up. Thanks!!! :o)
> c) You have mistyped the name in usrAppInit (sounds silly, but I've
> seen subtle typos leave people puzzled for hours)
Haha, yeah it happens.
-paul