LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-06-2010, 02:54 AM   #1
is noname
LQ Newbie
 
Registered: Dec 2009
Posts: 11

Rep: Reputation: 0
compile function c to java


i am beginners in C.
i want compile function c to java under linux.

the bashfile comp :
$ cc -fpic -c $(SRCS)
$ ld -shared $(OBJS) -o module.so
i see in www.swig.org

$ comp -java example.i # line 1
$ gcc -c example.c example_wrap.c -I/usr/java/jdk1.6.0_17/include -I/usr/java/jdk1.6.0_17/include/linux # line 2

$ gcc -shared example.o example_wrap.o -mno-cygwin -Wl,--add-stdcall-alias -o example.so #line 3

error line 3 :
/usr/bin/ld: unrecognized option '--add-stdcall-alias'
/usr/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status

please help me guys..

Thanks ..
 
Old 04-06-2010, 03:10 AM   #2
Infiltrator
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Rep: Reputation: 0
man ld gives this:

"--add-stdcall-alias
If given, symbols with a stdcall suffix (@nn) will be exported as-
is and also with the suffix stripped. [This option is specific to
the i386 PE targeted port of the linker]"

What exactly are you trying to do with this option?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 03:04 AM
cant compile java files in fedora 8.. java/ maranganesan Linux - Software 4 12-31-2007 12:21 PM
Compile Java - .class, .java, .jar ? woranl Programming 2 11-09-2004 10:12 PM
Help php exec, system function for compile javac or java antony_csf Programming 0 06-15-2004 01:45 AM
compile within bash function? adam_boz Programming 1 09-17-2002 11:13 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration