realbasic-plugins
[Top] [All Lists]

Re: [OT] weird compildation problem

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: [OT] weird compildation problem
From: Fargo Holiday <fargo at rpgportland dot com>
Date: Tue, 19 Dec 2006 13:58:01 -0800
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <DF499A08-F82A-4CBE-92DE-F782D76BB9F2 at coficio dot com>
Have you tried adding "using namespace std;" after your include statements?
Otherwise you'd likely have to access vector using std::vector, which I find to be a pain in the arse.

Alexander Cohen wrote:
In a plugin im working on, im getting a compilation error that just does not make sense to me. I understand what it means but i dont know why its happening. here's the code:

// code for test.cpp
#include <vector.h>
vector<double>    gMyVector;

and here's the error i get:

Error: 'vector' is used as a type, but is not defined as a type.

Any ideas why this might be happening?

thanks

Alex
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>