|
[Sponsors] |
November 26, 2007, 14:27 |
UDF: parse error
|
#1 |
Guest
Posts: n/a
|
I'm doing a simple DEFINE_ON_DEMAND function in a UDF and I always get the same error at some places and I don't understand why at all: "parse error at line ..." I looked on internet what people say about this error: some people say that's a problem of UDM (User Define Memory), other people say that we must use compiled and not interpreted UDF but for me that's chinese. Can someone tell me what to do? Thanks
|
|
December 2, 2007, 03:04 |
Re: UDF: parse error
|
#2 |
Guest
Posts: n/a
|
1. All the variables needs to be declared at the top(before starting you manipulation or calculations); 2. Parse error occurs when you miss ";" at the end of the line. 3. If you are transferring the ".c" file from windows system to unix system there may be ^M characters sitting at the end of the line. This may lead to some errors.
|
|
December 4, 2007, 04:19 |
Re: UDF: parse error
|
#3 |
Guest
Posts: n/a
|
Thanks for the information but I think I have something more special because I made tests of my code, so that I can compile each part of it, but when I put all the parts together it doesn't work and I allways get this "PARSE ERROR" and "INVALID TYPE FOR POINTER DEREFERENCE:FLOAT" at some place of my code...
|
|
December 4, 2007, 13:09 |
Re: UDF: parse error
|
#4 |
Guest
Posts: n/a
|
Pls. check that you have put in all the required library on the top of your program. Also, post the two lines of the code (ie. before and after the line error) after checking the braces({}) balance and ";"
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
parse error in transient udf | spring | FLUENT | 1 | July 6, 2010 07:26 |
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! | alban | Fluent UDF and Scheme Programming | 2 | June 8, 2010 19:54 |
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." | sega | OpenFOAM Community Contributions | 12 | February 17, 2010 10:30 |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 03:32 |
Compiling problems with hello worldC | fw407 | OpenFOAM Installation | 21 | January 6, 2008 18:38 |