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.
Multiple Defines errors when linking
Re: Multiple Defines errors when linking
MOD5270 has only 2M SDRAM while MOD5270B has 8M. Look for a Netburner document called "ConvertMod5270-to-Mod5270B.pdf" for more info.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.
Re: Multiple Defines errors when linking
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
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
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.
Forrest Stanley
Project Engineer
NetBurner, Inc
NetBurner Learn Articles: http://www.netburner.com/learn
Project Engineer
NetBurner, Inc
NetBurner Learn Articles: http://www.netburner.com/learn