Page 2 of 2

Re: Multiple Defines errors when linking

Posted: Thu Dec 30, 2010 2:38 pm
by kmcclure
Ok i got it to build correctly.

It seems to have an issue with the platform between 5270 and 5270B.

When I build with the 5270 its to large when I build with the 5270B it seems to build and load fine. I have an idea the the .ld files are different in a manner that makes the difference.

I will look into it further and try to give a more detailed description, so if others have this problem its recorded somewhere.

Re: Multiple Defines errors when linking

Posted: Thu Dec 30, 2010 8:11 pm
by roland.ames
kmcclure wrote:Ok i got it to build correctly.

It seems to have an issue with the platform between 5270 and 5270B.

When I build with the 5270 its to large when I build with the 5270B it seems to build and load fine. I have an idea the the .ld files are different in a manner that makes the difference.

I will look into it further and try to give a more detailed description, so if others have this problem its recorded somewhere.
MOD5270 has only 2M SDRAM while MOD5270B has 8M. Look for a Netburner document called "ConvertMod5270-to-Mod5270B.pdf" for more info.

Re: Multiple Defines errors when linking

Posted: Fri Dec 31, 2010 3:41 pm
by greengene
you might want to try this:
3) copy the following 2 files from the svn ~\v2.51\MOD5270B to the
~\v2.51\MOD5270, or equivalent on your space:
a) lib\MOD5270B.ld ==> lib\MOD5270.ld
b) MOD5270B\PLATFORMNAME ==> MOD5270\PLATFORMNAME

Re: Multiple Defines errors when linking

Posted: Mon Jan 03, 2011 10:22 am
by Forrest
Sounds like you got this figured out. But wanted to point out a solution for other readers. In the initial post, I saw that MOD5270.a AND MOD5270B.a libraries were linked in. So all of our MOD5270 functions were getting linked in twice, causing errors. Not sure how this happened, but could have been resolved by going to the project properties and finding the linker library options. Remove the library you are not using so only one of the above libraries was included.