|
[Sponsors] |
September 5, 2005, 23:40 |
why appear error?
|
#1 |
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! |
|
September 6, 2005, 20:49 |
Re: why appear error?
|
#2 |
Guest
Posts: n/a
|
include what? do you write the name of the file you want to include? is it in the programme directory?
|
|
September 6, 2005, 22:59 |
Re: why appear error?
|
#3 |
Guest
Posts: n/a
|
code is following:
#inlude"udf.h" ...... |
|
September 7, 2005, 03:21 |
Re: why appear error?
|
#4 |
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
|
|
September 7, 2005, 04:52 |
Re: why appear still error?
|
#5 |
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? |
|
September 7, 2005, 05:04 |
Re: why appear error?
|
#6 |
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.
|
|
September 7, 2005, 23:05 |
Re: why appear still error?
|
#7 |
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.
|
|
|
|
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 |