You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Sayed, Irfan (Irfan)" <is...@avaya.com> on 2006/06/28 12:22:04 UTC

Ant help for c compiler

Hi All,
 
I have been assign a task of migrating our build environment from make
file base system to ant base system. Our code base has code of java, C
and cpp. 
With Make file we are able to compile and generate the code. To migrate
I have downloaded sample makefile (see the attached build_java.xml
file). using this I am able to compile java codes ,
but if I modify the code to (see attache modified build_c.xml file) have
C++ compile I getting weied errors. Its apparent that I missing
something, can anyone guide me to how to have C++ and C compiled.
Please provide a sample build file that can compile java, C and C++
codes, also point me to a write-up that can help me ramp up on setting
up ant build environment. 
 
Would appreciate a quick and prompt response
 
Regards
Irfan.
 
 
 
 

Re: Ant help for c compiler

Posted by Martin Gainty <mg...@hotmail.com>.
Wow what a task!

Keep in mind your ANT environment's interactions are thru the JVM/JDK (which are configured by jvm.args and jvm.opts)

This is platform-agnostic separate environment from interactions with native binaries which is the situation you have now

I would look at manipulations of the Java LD_LIBRARY_PATH within the jvm.opts/jvm.args to accomodate the new binaries

Good Luck and Godspeed!
Martin--
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



  ----- Original Message ----- 
  From: Sayed, Irfan (Irfan) 
  To: user@ant.apache.org 
  Sent: Wednesday, June 28, 2006 6:22 AM
  Subject: Ant help for c compiler


  Hi All,

  I have been assign a task of migrating our build environment from make file base system to ant base system. Our code base has code of java, C and cpp. 
  With Make file we are able to compile and generate the code. To migrate I have downloaded sample makefile (see the attached build_java.xml file). using this I am able to compile java codes ,
  but if I modify the code to (see attache modified build_c.xml file) have C++ compile I getting weied errors. Its apparent that I missing something, can anyone guide me to how to have C++ and C compiled.
  Please provide a sample build file that can compile java, C and C++ codes, also point me to a write-up that can help me ramp up on setting up ant build environment. 

  Would appreciate a quick and prompt response

  Regards
  Irfan.






------------------------------------------------------------------------------


  ---------------------------------------------------------------------
  To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
  For additional commands, e-mail: user-help@ant.apache.org