Hi
I am trying to create a dll that can be accesssed by
vb. This is just a sample, but if it succeeds, I will
write a real one.
the cpp file is:
#include "Sample.h"
int _stdcall sum(int a, int b)
{
int result;
result = a + b;
return result;
}
The h file is:
int _stdcall sum(int a, int b);
The def file is:
LIBRARY Sample.dll
EXPORTS
sum
When I compile I get the error message:
[linker error] undefined reference to 'sum'
Is this a bug or am I doing something wrong?
Thank you,
Peter Stern
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
|