Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Codewarrior Windows > Re: Compiling B...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 5 Topic 285 of 319
Post > Topic >>

Re: Compiling Boost MultiArray

by Doyle Rhynard <drhynard@[EMAIL PROTECTED] > Jul 6, 2005 at 09:47 PM

Howard Hinnant wrote:
> In article <8Z-dnRB-RN3DblffRVn-vg@[EMAIL PROTECTED]
>,
>  Doyle Rhynard <drhynard@[EMAIL PROTECTED]
> wrote:
> 
> 
>>However, the following is a simple test program:
>>
>>   #include <boost/multi_array.hpp>
>>   #include <iostream>
>>
>>   using namespace std;
>>   using namespace boost;
>>
>>   int main() {
>>     multi_array<float,3> f(extents[5][4][3]);
>>     for (int N0 = 0; N0 < 5; N0++) {
>>       for (int N1 = 0; N1 < 4; N1++) {
>>         for (int N2 = 0; N2 < 3; N2++) {
>>           f[N0][N1][N2] = 100*N2 + 10*N1 + N0;
>>           cout << "  " << f[N0][N1][N2];
>>         }
>>         cout << endl;
>>       }
>>     }
>>     return 0;
>>   }
>>
>>results in numerous compile errors, mostly ambiguous overloaded function

>>accesses and denied access problems. For comparison, it compiles and 
>>runs perfectly using Cygwin/g++.
> 
> 
> It sounds like either a boost configuration error, or 
> perhaps an access error in your project's paths.  Make sure 
> your boost path is in your system paths, and uncheck "Source 
> relative includes".
> 
> -Howard

You were mostly right. The only way that I could get it to compile was 
to uncheck both the "Source relative includes" and the "Always Search 
User Paths". If either were selected, there were errors generated, no 
matter where I placed the Boost directory: project directory, arbitrary 
directory, or even in the Codewarror directory.

Somehow, I suspect that the problem is related to the rather strange 
layout of the nested structure Boost directories and the way they refer 
to each other.

Are you aware of a preferred place to store the Boost files so that I 
can use the "Source relative includes" and the "Always Search User 
Paths" options? I know that I have needed them in the past.
 




 5 Posts in Topic:
Compiling Boost MultiArray
Doyle Rhynard <drhynar  2005-07-05 13:53:46 
Re: Compiling Boost MultiArray
Howard Hinnant <hinnan  2005-07-05 21:48:20 
Re: Compiling Boost MultiArray
Doyle Rhynard <drhynar  2005-07-06 21:47:28 
Re: Compiling Boost MultiArray
Howard Hinnant <hinnan  2005-07-07 20:06:01 
Re: Compiling Boost MultiArray
Doyle Rhynard <drhynar  2005-07-09 13:38:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 20:05:15 CDT 2008.