Multiple Defines errors when linking

Topics for the Eclipse Environment
kmcclure
Posts: 7
Joined: Wed Dec 29, 2010 11:15 am

Re: Multiple Defines errors when linking

Post 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.
roland.ames

Re: Multiple Defines errors when linking

Post 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.
greengene
Posts: 164
Joined: Wed May 14, 2008 11:20 am
Location: Lakeside, CA

Re: Multiple Defines errors when linking

Post 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
User avatar
Forrest
Posts: 288
Joined: Wed Apr 23, 2008 10:05 am

Re: Multiple Defines errors when linking

Post 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.
Forrest Stanley
Project Engineer
NetBurner, Inc

NetBurner Learn Articles: http://www.netburner.com/learn
Post Reply