Вопрос

How can we upgrade the old GCC from version 3.4 to 4.1(that is from GCC 3.4 to GCC 4.1 or above) on Fedora 3 (version is 2.6.10)?

More information: We are developing an application which will be running on Fedora 3, but the application needs some atomic built-ins, __sync_val_compare_and_swap, __sync_fetch_and_add, etc, which are only available on GCC 4.1 or above. SO I think we can either define them or upgrade gcc to new one on Fedora 3, but now we don't know neither.

Это было полезно?

Решение

If you still want to stick with GCC 3.4 you could use other libraries that provides the same primitives. For example atomic_ops (atomic_ops @ github)

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top