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: Alexander Cohen <alexander dot cohen at coficio dot com>
Date: Tue, 19 Dec 2006 17:12:28 -0500
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> <45886069 dot 5090306 at rpgportland dot com>
I had tried both of those options but it still didnt work. I found and fixed the problem though. A header i was included had an open extern "C". closing it fixed the problem.

AC

On 19-Dec-06, at 4:58 PM, Fargo Holiday wrote:

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>

_______________________________________________
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>