Silverfrost Forums

Welcome to our forums

Multiple definitions

27 Dec 2010 2:31 #7289

I compiled my programme using PLATO, no errors, but when I build it this is what I got.

Compilation completed with no errors. Linking... *** Multiple definition of symbol: _FOAM C:\test\CheckMate\Win32\test-master-main.obj (C:\TEST\TEST-MASTER-MAIN.F) and, C:\test\CheckMate\Win32\subs-foam.obj (C:\TEST\SUBS-FOAM.F)

I have checked all the files and only one file (subs-foam.f ) has the parameter. I am using 'include' statements. What does this mean? Could it be because of the statement?

27 Dec 2010 9:19 #7291

It appears that _FOAM is an external symbol used in different ways. For example it could be a subroutine that has been defined in one way but used in a way that is not consistent with its definition.

27 Dec 2010 4:31 #7293

I had added all my include source files into the project when I should just allow Plato to do it.

It's fine for now. Thank you.

Please login to reply.