Thread: Can't solve a certain seg fault.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Did you remember to put \n or std::endl at the end of it? I'll bet you a quarter you didn't.

    If you're using g++ and not using -Wall and -Wextra and -Weffc++, then you're just being silly.

    Also: see other EDIT above.

  2. #2
    Registered User
    Join Date
    Nov 2010
    Posts
    17
    Quote Originally Posted by laserlight View Post
    Increase your compiler's warning level.
    Quote Originally Posted by tabstop View Post
    If you're using g++ and not using -Wall and -Wextra and -Weffc++, then you're just being silly.

    Also: see other EDIT above.
    I'll look into those. Thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What is error, kindly solve the issue and make me know my fault
    By kapil1089thekin in forum C++ Programming
    Replies: 6
    Last Post: 08-17-2010, 11:27 PM
  2. Can anybody let me know how to solve this.
    By Farhan in forum C Programming
    Replies: 5
    Last Post: 02-24-2009, 08:44 PM
  3. WHO can solve this???
    By scjohnny in forum C++ Programming
    Replies: 6
    Last Post: 08-12-2008, 09:40 AM
  4. segmentation fault and memory fault
    By Unregistered in forum C Programming
    Replies: 12
    Last Post: 04-02-2002, 11:09 PM