Ashish,

 

As with your earlier questions, this is almost certainly not NAnt
specific, but is related instead to the command line NAnt uses when
calling the compiler. You would probably get the same kind of problem
with any other build tool (e.g. a batch file, nmake, etc.).

 

With any problem where a tool called by NAnt is failing, try the
following troubleshooting procedure:

 

1)       Identify the command line which NAnt is using to trigger the
external application. (It'll be in the NAnt log, although sometimes you
may need to enable verbose logging to see it.)

2)       Review the command line manually (or try running it directly
from the command prompt). Occasionally you may get a more helpful
response than what NAnt has captured. Look especially for warnings early
on in the process since they often provide hints to the real problem.

3)       Check that environment variables are set appropriately (when
using compilers from the command prompt, they will often pull
information from machine settings - see for example Microsoft's
VCVARS.BAT file which used to, and possibly still does, need to be run
before compiles triggered from the command prompt succeed).

4)       Modify the environment variables and command line until you
know the correct one to use

5)       Modify the NAnt script to supply the arguments and/or
environment variables that were absent before.

 

In this specific case, my first guess based on the error messages (the
fact that compiler apparently can't find strlen, and sprintf which I
would expect to be library methods) would be that the include path is
not set correctly - something which would indeed be taken care of for
you by the IDE. If that is the case, it is also highly likely that the
library path for the linker is also not set appropriately.

 

I hope this helps,

Regards,

Richard

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ashish
Mittal
Sent: Tuesday, June 19, 2007 2:16 AM
To: nant-users@lists.sourceforge.net;
[EMAIL PROTECTED]
Subject: [NAnt-users] serious problem

 

Hi friends,

                  I am getting  below mentioned problems while compiling
but my project is compiling well in IDE

 

 

 

 

: error C3861: 'NULL': identifier not found, even with
argument-dependent lookup

 

) : error C3861: 'strDate': identifier not found, even with
argument-dependent lookup

                            : error C3861: 'Date': identifier not found,
even with argument-dependent lookup

                               [cl]
e:\iData_SDK\build-source\IAiSmartCardControl\iCamDeviceMgr.cpp(364) :
error C3861: 'sprintf': identifier not found, even with
argument-dependent lookup

                               [cl]
e:\iData_SDK\build-source\IAiSmartCardControl\iCamDeviceMgr.cpp(364) :
error C3861: 'strDate': identifier not found, even with
argument-dependent lookup

                          

     [cl]
e:\iData_SDK\build-source\IAiSmartCardControl\iCamDeviceMgr.cpp(366) :
error C3861: 'strlen': identifier not found, even with
argument-dependent lookup

 

 

 

Please provide me the solution

 

######################################### THIS EMAIL MESSAGE IS FOR THE
SOLE USE OF THE INTENDED RECIPIENT(S) AND MAY CONTAIN CONFIDENTIAL AND
PRIVILEGED INFORMATION. ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR
DISTRIBUTION IS PROHIBITED.BEFORE OPENING ANY ATTACHMENTS PLEASE CHECK
FOR VIRUSES AND DEFECTS.IF YOU ARE NOT THE INTENDED RECIPIENT, PLEASE
NOTIFY US IMMEDIATELY BY REPLY E-MAIL AND DELETE THE ORIGINAL MESSAGE.
#########################################




* C O N F I D E N T I A L I T Y N O T I C E *
-----------------------------------------------------------
The content of this e-mail is intended solely for the use of the individual or 
entity to whom it is addressed. If you have received this communication in 
error, be aware that forwarding it, copying it, or in any way disclosing its 
content to any other person, is strictly prohibited. Quixote Traffic 
Corporation is neither liable for the contents, nor for the proper, complete 
and timely transmission of (the information contained in) this communication. 
If you have received this communication in error, please notify the author by 
replying to this e-mail immediately and delete the material from any computer.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to