Full Version: Fortran Error

From: zia [#1]
 28 Nov 2006
To: ALL

I am very new user of fortran.... trying a code for 10 bar truss but getting following message.

--------------------Configuration: Text1 - Win32 Debug--------------------
Linking...
Text1.obj : error LNK2001: unresolved external symbol _X@4
Debug/Text1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Text1.exe - 2 error(s), 0 warning(s)


what to do.. plz

Reply


From: zia [#2]
 28 Nov 2006
To: zia [#1] 28 Nov 2006

ze="5">

Reply


From: geezer (MG) [#3]
 4 Dec 2006
To: ALL

Check the line
Ps=X(1)+X(2)+X(3)+X(4)+X(5)+X(6)+SQRT(2.)*(X(7)+X(8)+X(9)+X(10))

Because X is not dimensioned, Fortran thinks it must be a function named X and it can't find such a function.

Reply


Reply to All

Back to thread list | Login

© 2010 Project BeehiveForum