Problem declaring 'string' variables on Mac OSX


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Problem declaring 'string' variables on Mac OSX

  1. #1
    Join Date
    Feb 2006
    Posts
    2

    Problem declaring 'string' variables on Mac OSX

    Hey, has anyone got any idea why SubEthaEdit won't recognise string variable on a Mac (OSX)? It's driving me completely crazy! I've done the usual #include <string> bit at the top of the program but it just doesn't like it. I'm pretty new to this game so be kind!!

  2. #2
    Join Date
    Nov 2003
    Posts
    4,118
    I've no experience in Mac OSX but I do know that Mac has always been notoriously incomplaint with the standards. Anyway, try to make sure that your source file has a .cpp or .cxx extension, and that you're using std::string to refer to the string object (it's an object, btw, not a variable). Also, make sure that your IDE is configured properly i.e., it knows where to find the standard headers.
    Danny Kalev

  3. #3
    Join Date
    Feb 2006
    Posts
    2
    cheers Danny, that fixed the problem (was thinkin it was a variable not an object).

Similar Threads

  1. SQL DMO Restores in VB?
    By ObiWan in forum VB Classic
    Replies: 3
    Last Post: 05-23-2006, 10:35 AM
  2. Problem declaring variables
    By Shannon in forum VB Classic
    Replies: 3
    Last Post: 05-19-2005, 03:29 AM
  3. verify local admin
    By Patrick Comeau in forum VB Classic
    Replies: 6
    Last Post: 03-22-2001, 10:50 PM
  4. Replies: 0
    Last Post: 06-22-2000, 07:30 AM
  5. Database problems
    By Robert Rieth in forum VB Classic
    Replies: 1
    Last Post: 04-11-2000, 03:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center