Thread: SXX0017 error

  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    24

    SXX0017 error

    Code:
    #include <stdio.h>
    #include <string.h>
    int menuwriter(char **menu);
    int distributor(int p, char **menu);
    
    int main(void)
    {
    	char *menu[] = {"data", "comes", "here", NULL};
    
    // HERE I PUT BREAKPOINT
    
    	menuwriter(menu);
    
    	return 0;
    }
    in watch i type

    strlen(menu) and
    strlen(menu) CXX0017: Error: symbol "strlen" not found

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    menu is an array of pointers to char. strlen is supposed to be passed a pointer to char as an argument.

    Is this supposed to be C or C++?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Apr 2010
    Posts
    24
    C only

  4. #4
    Registered User
    Join Date
    Apr 2010
    Posts
    24
    ahhh srry I put this in wrong section :S

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Winsock problem
    By Wolf` in forum Windows Programming
    Replies: 1
    Last Post: 05-01-2010, 04:55 PM
  2. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  3. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM