Eclipse CDT on Snow Leopard cannot find executable files

After upgrading to Snow Leopard, I can no longer run the Eclipse CDT project on my computer. Although the build process completes without any error, Eclipse does not recognize the binary it created. When you try to point to a binary file in the Run Configuration .. dialog box , it cannot find the binary file in the project. Although executing the file from the terminal is working fine.

According to a post on the Eclipse forum, this could be a problem when the Mach-O parser does not recognize 64-bit binaries. Does anyone know what solutions or workarounds are for the problem so that I can run / debug my C ++ projects on Snow Leopard.

UPDATED

The solution proposed by Shane , although it recognizes a binary file, creates another problem. Since the Snow Leopard system libraries are all 64 bits, it is no longer possible to link the code generated using -arch i386these libraries and, therefore, a not yet feasible solution.

+3
source share
5 answers

According to the post you are referring to, you need to add -arch i386 to the compiler and linker settings for the project. Then, when you rebuild the project, CDT picks up the executable files.

Project Properties -> C / C ++ Build -> Settings. Then, in the compiler and linker, Different sections add the flag to other flags.

Greetings

+3

Eclipse 64- Mach-O (https://bugs.eclipse.org/bugs/show_bug.cgi?id=270790), , 32- .

C/++ , 64-.

XCode.

+2

gmatt,

64 , . , , .

Cheers,

+1

, 64 .

Eclipse . , , ++ Eclipse, - - .

+1

, [ → C/++ Build → ], . , .

: [eclipse → → C/++ → C/++ → makefile → → mach-O ()]

0

Source: https://habr.com/ru/post/1718104/


All Articles