On Thu, Mar 11, 2010 at 10:53 PM, Liang <[email protected]> wrote:
> liang cheng wrote:
>> Hi developers and users,
>>
>> I completed an input script, which is a 1st-order time dependent PDE
>> including 2 equations and 2 variables. Then I generated this error
>> when link the program. I have checked my codes with ex9 & ex11 a
>> couple of times, but still can't get the code work.
>>
>> The problem may lie in the 'exact_solution' function, I have define it
>> before main code as "Real exact_solution (const Real x,const Real
>> y,const Real t);" did I miss some head files?

The problem is an undefined reference at link time, did you define
your exact_solution function in a separate file, similar to what we
did in ex3?  If so, you probably aren't linking against the object
file for your exact solution.  Check out the Makefile for ex4, for
example.  It uses the exact solution of ex3, and creates a dependency
by adding the ex3 exact solution to the list of srcfile.

srcfiles        := $(wildcard *.C) ../ex3/exact_solution.C

-- 
John

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to