|
From: Stefan M. <ste...@oe...> - 2006-05-12 11:45:47
|
hi!
xtof solved the problem.
the extern "C" statement is not necessary in the c++ file.
it is already included in the SOSlib headers.
in processAST.h there was an error: the definitions of
indexAST
simplifyAST
AST_dump
ASTNode_getSymbols
ASTNode_containsTime
have to be inside the extern "C" statement.
thanks,
stefan.
Am Freitag 12 Mai 2006 11:37 schrieben Sie:
> hi!
>
> i would like to use the SOSlib in a c++ program. using
> #include <sbmlsolver/odeSolver.h>
> works fine with the compiler, but not with the linker. Using
> extern "C" { #include <sbmlsolver/odeSolver.h> }
> the compiler gives the error: template with C linkage
>
> does anybody know what i can do about this?
>
> cheers,
> stefan.
>
> p.s. the exact error message:
> In file included from /usr/include/c++/3.3.5/iosfwd:46,
> from /usr/local/include/sbml/SBMLDocument.h:62,
> from /usr/local/include/sbml/SBMLTypes.h:56,
> from /home/stefan/local/include/sbmlsolver/odeSolver.h:40,
> from adj_sensitivity.cpp:43:
> /usr/include/c++/3.3.5/x86_64-suse-linux/bits/c++locale.h:70: error:
> template with C linkage
|