too many arguments to function 'void

This is a discussion on too many arguments to function 'void within the C++ Programming forums, part of the General Programming Boards category; When I use this code: Code: sound(2000,4000); An error comes up saying: too many arguments to function 'void I am ...

  1. #1
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342

    Exclamation too many arguments to function 'void

    When I use this code:
    Code:
    sound(2000,4000);
    An error comes up saying:
    too many arguments to function 'void
    I am using DJGPP if that helps.
    I tried it with and without void in the main int.
    But the same error came up both ways.

    Thanks, Cool-August.

  2. #2
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    Judging from your previous post, I think this code example should help.

    Code:
    #include <windows.h>
    
    int main()
    {
    	Beep(100,250);
    	Beep(300,250);
    	Beep(600,250);
    	Beep(900,250);
    	return 0;
    }

  3. #3
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    just what header is sound in anyway? it's not in dos.h as, uh, the other guy said in the last post.
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

  4. #4
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Well, that explains a lot then becouse that is the header that I was using.

  5. #5
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    don't waste much time on figuring it out, unless you actually have a real good reason to. it's not very fun to play with.
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 05-13-2011, 09:28 AM
  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, 09:18 PM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 03:39 PM
  4. msvc just ate one of my source files
    By Eber Kain in forum C++ Programming
    Replies: 6
    Last Post: 07-01-2004, 06:40 AM
  5. Quack! It doesn't work! >.<
    By *Michelle* in forum C++ Programming
    Replies: 8
    Last Post: 03-02-2003, 12:26 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21