CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

why appear error?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 5, 2005, 23:40
Default why appear error?
  #1
wanghong
Guest
 
Posts: n/a
hi,when i compile any code with '#include <udf.h>'in its first line,copmuter always tells me that no such file or directory.why?help me pls!

thanks!
  Reply With Quote

Old   September 6, 2005, 20:49
Default Re: why appear error?
  #2
Ahmed
Guest
 
Posts: n/a
include what? do you write the name of the file you want to include? is it in the programme directory?
  Reply With Quote

Old   September 6, 2005, 22:59
Default Re: why appear error?
  #3
wanghong
Guest
 
Posts: n/a
code is following:

#inlude"udf.h" ......

  Reply With Quote

Old   September 7, 2005, 03:21
Default Re: why appear error?
  #4
Ahmed
Guest
 
Posts: n/a
OK, if it is written exactly as you have it here then where is the space between the #include directive and the file name. If the file is not in the main directory you can either copy it to the main directory or write the complete file name including the path e.g. <c:\xxxx\xxx\udf.h> In C language the <xxxx> and "xxxx" have different meanings to the parser. Check any C language book for the differenc. Hope that will solve your problem and Good luck
  Reply With Quote

Old   September 7, 2005, 04:52
Default Re: why appear still error?
  #5
wanghong
Guest
 
Posts: n/a
hi,error still exist. the case is following: #include "C:\FLUENT.INC\FLUENT\fluent6.0\client\src\udf .h" DEFINE_PROFILE(inlet_xv_sinusoidal, /* function name */

thread, /* thread

nv) /* variable number */ { face_t f; real flow_time = RP_Get_Real("flow-time");

begin_f_loop (f,thread)

{

F_PROFILE(f,thread,nv) = 20. + 5.*sin(10.*flow_time);

} end_f_loop (f,thread) }

Compiling... inlet_xv_sinusoidal.c c:\documents and settings\管理'\桌面\inlet_xv_sinusoidal.c(1) : fatal error C1083: Cannot open include file: 'C:\FLUENT.INC\FLUENT\fluent6.0\client\src\udf.h': No such file or directory Error executing cl.exe.

inlet_xv_sinusoidal.obj - 1 error(s), 0 warning(s)

why?

  Reply With Quote

Old   September 7, 2005, 05:04
Default Re: why appear error?
  #6
zxaar
Guest
 
Posts: n/a
its something to do with your path settings of the header, please ask to fluent support about this, they are best person to advise on this issue.
  Reply With Quote

Old   September 7, 2005, 23:05
Default Re: why appear still error?
  #7
Ahmed
Guest
 
Posts: n/a
Call your support engineer and if possible post the reason for that, you have forced the compiler to read the file where it is residing, wish happy ending to that situation.
  Reply With Quote

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
c++ libraries and solver compiling vaina74 OpenFOAM Installation 13 February 3, 2012 17:43
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51
user defined function cfduser CFX 0 April 29, 2006 10:58


All times are GMT -4. The time now is 17:11.