Skip to content Skip to sidebar Skip to footer

How Do I Resolve A "section Type Conflict" Compile Error And Best Practices For Using Section Attribute With Gcc

I am using Android NDKr8 and by extension gcc to compile some library code that is shared across multiple platforms including some embedded ones. This code uses segments to put a

Solution 1:

I got the same problem. And my situation is I put the code and variables in the same section. After I put the variable in a different section, the problem dismissed. Hope this helps.

Solution 2:

"# define DB_SEGMENT attribute ((section ("DBSegment")))"

I am seeing a space between # and define which is not correct.

Remove that space and try compiling.

Post a Comment for "How Do I Resolve A "section Type Conflict" Compile Error And Best Practices For Using Section Attribute With Gcc"