× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Trying out some stuff on V7R3 and ixlc. Notice that I am coding a double
vector thusly:

vector<vector<int>> v2;

Under an older compiler, you'll get barked at for not spacing ">>" like ">
". I compiled with :
ixlc -+ -oBEAK/XXX -qlanglvl=extended0x -qstdlogmsg -qprint yourmom.cpp

I simply get "Compilation failed." (Shouldn't I be getting compiler
messages to the screen with "-qstdlogmsg"?)

In any case, the helpful joblog says:
SUGGESTION: Try using "-qlanglvl=rightanglebracket". It looks like you are
trying to use the associated C++0x
feature.


So, I try
ixlc -+ -oBEAK/XXX -qlanglvl=extended0x -qstdlogmsg -qprint
-qlanglvl=rightanglebracket yourmom.cpp

then get
INVALID COMPILING OPTIONS:-qlanglvl=rightanglebracket

:-(

#include <iostream>
#include <string>
#include <sstream>
#include <iomanip>
#include <vector>
#include <unistd.h>

using namespace std;


class yourmom {
public :
operator string() const {
return "your mom";
}
};


int main(int argc, char* argv[])
{
yourmom c;
int i = 666;
auto x = i;
vector<int> v;
vector<vector<int>> v2;

v.push_back(111);
v.push_back(222);
v.push_back(333);
v.push_back(444);

string s = c;
cout << s << endl;
cout << "i=" << i << endl;
cout << "x=" << x << endl;
cout << "i + x=" << i + x << endl;
for (int i : v) {
cout << i << endl;
}
}



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.