Re: [CMake] Specify 32-bit compilation to Clang

2015-01-21 Thread Robert Dailey
Thanks for your help so far. Your 3rd command produced the output below. I'll keep looking into this but just wanted to share. I'm not sure why it isn't working, and I'm not completely familiar with linux development so it will take me a while to figure this out. robert@robert-OptiPlex-745 ~ $

Re: [CMake] Specify 32-bit compilation to Clang

2015-01-21 Thread Nils Gladitz
I am not sure what else it could be. Here are some queries I did on my system where it seems to be working; perhaps it will help you backtrack the issue: Ubuntu 14.04.1 LTS (64-bit) # gcc --version : gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 # clang --version : Ubuntu clang version 3.4-1ubuntu3

Re: [CMake] Specify 32-bit compilation to Clang

2015-01-20 Thread Nils Gladitz
On 01/20/2015 04:48 PM, Robert Dailey wrote: On Mon, Jan 19, 2015 at 2:12 PM, Nils Gladitz nilsglad...@gmail.com wrote: On 19.01.2015 21:08, Robert Dailey wrote: I have done this and it fails while linking the test program during configuration: /usr/bin/ld: cannot find crtbegin.o: no such

Re: [CMake] Specify 32-bit compilation to Clang

2015-01-20 Thread Robert Dailey
On Mon, Jan 19, 2015 at 2:12 PM, Nils Gladitz nilsglad...@gmail.com wrote: On 19.01.2015 21:08, Robert Dailey wrote: I have done this and it fails while linking the test program during configuration: /usr/bin/ld: cannot find crtbegin.o: no such file or directory /usr/bin/ld: cannot find

Re: [CMake] Specify 32-bit compilation to Clang

2015-01-20 Thread Robert Dailey
On Tue, Jan 20, 2015 at 9:58 AM, Nils Gladitz nilsglad...@gmail.com wrote: On 01/20/2015 04:48 PM, Robert Dailey wrote: On Mon, Jan 19, 2015 at 2:12 PM, Nils Gladitz nilsglad...@gmail.com wrote: On 19.01.2015 21:08, Robert Dailey wrote: I have done this and it fails while linking the test

[CMake] Specify 32-bit compilation to Clang

2015-01-19 Thread Robert Dailey
I'm running CMake 3.1 on Mint 64-bit OS. I need to generate an Eclipse project using Ninja that uses Clang to build a 32-bit application. When I do this: add_definitions(-m32) For some reason my code is not able to include STL headers (files not found). Any reason for this? Is there a more

Re: [CMake] Specify 32-bit compilation to Clang

2015-01-19 Thread Gregor Jasny
Hello Robert, On 19/01/15 20:42, Robert Dailey wrote: I'm running CMake 3.1 on Mint 64-bit OS. I need to generate an Eclipse project using Ninja that uses Clang to build a 32-bit application. When I do this: add_definitions(-m32) For some reason my code is not able to include STL

Re: [CMake] Specify 32-bit compilation to Clang

2015-01-19 Thread Nils Gladitz
On 19.01.2015 21:08, Robert Dailey wrote: I have done this and it fails while linking the test program during configuration: /usr/bin/ld: cannot find crtbegin.o: no such file or directory /usr/bin/ld: cannot find -lgcc /usr/bin/ld: cannot find -lgcc_s Any ideas? Try installing the