__declspec (bare) to avoid underscore prefix?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

__declspec (bare) to avoid underscore prefix?

1,743 次查看
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

标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

1,126 次查看
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 项奖励
回复

1,126 次查看
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 项奖励
回复