__declspec (bare) to avoid underscore prefix?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

__declspec (bare) to avoid underscore prefix?

895 Views
Obetz
Contributor III

Hello All,

 

anybody using __declspec (bare) or any other method to get a symbol without underscore prefix?

 

I tried __declspec (bare) as explained in the "ColdFire Build Tools Reference Manual" page 184 but CW/CF 7.2.1 complains "illegal type qualifier(s)".

 

Background: I want to have sources compiling with gcc and CW alternatively, and IMO it's cleaner to create the correct symbols in the first place instead of adding lots of aliases in the assembler part.

 

Oliver

Labels (1)
0 Kudos
2 Replies

278 Views
admin
Specialist II

There is no cheap solution to compile non-trivial projects with GCC and CW from the same sources.

 

You'll certainly get ABI conflicts with your own libraries if certain care is not taken.

0 Kudos

278 Views
Obetz
Contributor III

I have no "ABI conflicts with my own libraries" but a specific problem, so what is your contribution to the original question, Nikolaich?

0 Kudos