Link to home
Start Free TrialLog in
Avatar of Joserip
Joserip

asked on

in something not a structure or union

Do we need to set up anything to avoid getting this message?
request for member `GetStringUTFChars' in something not a
structure or union????

D:\HelloWorld\src>gcc -c -o
HelloWorld.o -ID:/jbuilderX/jdk1.4/include -ID:/jbuilderX/jdk1.4/include
/win32 HelloWorldImp.c
HelloWorldImp.c: In function `Java_HelloWorld_checkProcess':
HelloWorldImp.c:49: request for member `GetStringUTFChars' in something not
a structure or union
HelloWorldImp.c:51: request for member `FindClass' in something not a
structure or union
HelloWorldImp.c:54: request for member `ReleaseStringUTFChars' in something
not a structure or union

HelloWorldImp.c:62: request for member `ReleaseStringUTFChars' in something
not a structure or union
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Are you compiling Java with C compiler? You use dot-notation, so the C-compiler thinks you refer to structure or union members. I might be completely off, though...
Avatar of Joserip
Joserip

ASKER

when compiling the  c program with dev-cpp this error is generated and trying to kill the
process which is running through c by creating dll  to access in java ..
ASKER CERTIFIED SOLUTION
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial