10 Years
Discussion Span
Last Post by shrutijadhav

we tried gcc but its not working.

the syntax in solaris is given by
cc -G -I/usr/local/java/include -I/usr/local/java/include/solaris \
HelloWorldImp.c -o libhello.so

we want for fedora 7
fedora 7 is giving error for -G and -I


Because that is cc and not gcc. Read the documentation for the two, figure out what those two options are in cc and use the corresponding options in gcc, and make sure the paths are correct.


I read the documentation for both.
-G : Produces a shared object
-I : changes the include-file search rules
-Idir : adds dir to the list of directories that are
searched for #include files.

which in fedora correspond to -shared & -I(-iquote).

its again giving me error .

shared is under linker options and
-Idir/-I are under directory options.

do i need to switch over the linker & directory options?
if so,how to do that?
but manpages for my fedora 7

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.