Dear All,

I am trying to compile the example 10.c located in the directory 
/petsc-3.3-p6/src/snes/examples/tutorials/ but facing a lot of compilation 
errors related to a ALE object (??).

In fact, I have tried to compile this example using the "make ex10" command 
like for other examples on different platforms (OSX 10.8 and 
Linux x64) but no success. I am using the last version of PETSc and also tried 
with the dev version with no luck. 

Furthermore, after testing the other exercises, I noticed that ex12.c had the 
same problem (with the ALE object).

Is there is an error with ex10 and ex12 of SNES tutorials ? How can I compile 
them ? Moreover, I noticed that the SNES tutorials directory contained a ex10d 
directory containing a ex10.c source file. Is this related to the ex10.c file 
in the SNES tutorials directory ?

Thanks for you help.

Best regards,

PY


-------- Errors examples -----------------------
ex10.c: In function ?CreateProblem_gen_0?:
ex10.c:35: error: expected expression before ?:? token
ex10.c:39: warning: implicit declaration of function ?DMMeshGetMesh?
ex10.c:39: error: ?m? undeclared (first use in this function)
ex10.c:39: error: (Each undeclared identifier is reported only once
ex10.c:39: error: for each function it appears in.)
ex10.c:41: error: nested functions are disabled, use -fnested-functions to 
re-enable
ex10.c:41: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?:? 
token
ex10.c:41: error: expected expression before ?:? token
ex10.c:43: error: ?d? undeclared (first use in this function)
ex10.c:35: warning: label ?ALE? defined but not used
ex10.c: At top level:
ex10.c:62: error: expected declaration specifiers or ?...? before ?SectionReal?
ex10.c:62: error: expected declaration specifiers or ?...? before ?SectionReal?
ex10.c:62: error: expected declaration specifiers or ?...? before ?SectionReal?
ex10.c: In function ?FormFunctionLocal_U?:
ex10.c:64: error: expected expression before ?:? token
ex10.c:65: error: duplicate label ?ALE?
-------- More errors after -----------------------

Reply via email to