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

2015-01-24 Thread Robert Dailey
Where are these variables documented? I haven't seen them anywhere. Also is this required? I'd rather the CMake script itself specify that 32-bit compilation is needed, since the code itself does not compile properly in 64-bit environment. On Mon, Jan 19, 2015 at 1:48 PM, Gregor Jasny wrote: > He

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 ~ $ cla

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 (tag

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 wrote: > On 01/20/2015 04:48 PM, Robert Dailey wrote: >> >> On Mon, Jan 19, 2015 at 2:12 PM, Nils Gladitz >> wrote: >>> >>> On 19.01.2015 21:08, Robert Dailey wrote: I have done this and it fails while linking the test program during >>

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 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/b

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 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 -lgcc >> /us

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 g++-multil

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

2015-01-19 Thread Robert Dailey
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? On Mon, Jan 19, 2015 at 1:48 PM, Gregor Jasny wrote: > Hello Robert, > > O

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

[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 pro