LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-10-2008, 04:34 PM   #1
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Rep: Reputation: 43
deprecated function in C++


Hello all,
I've came across an error I've never seen before in C++. I've started to experiment with OpenAL (because of problems with sdl mixer), I've installed the openal packages (.debs) however 3 functions report the above error.
For example warning: ‘alutUnloadWAV’ is deprecated. However I've no idea
what this means can anyone help. Thanks.
 
Old 08-10-2008, 05:04 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
It means that the function will be removed in future versions of the library, and while you might be able to get your code working with it now, it may not build with future releases of openal.

When something is deprecated, it generally means a newer, better method of doing the same thing has been created, and you should use the new method.
 
Old 08-10-2008, 05:04 PM   #3
raconteur
Member
 
Registered: Dec 2007
Location: Slightly left of center
Distribution: slackware
Posts: 276
Blog Entries: 2

Rep: Reputation: 44
In general, deprecated functions are those which are obsolete and being phased out of the project, but are included in the current release of a project for compatibility with older code.
 
Old 08-11-2008, 01:15 PM   #4
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Original Poster
Rep: Reputation: 43
Thanks guys I can honestly say as someone whose worked as a programmer for more than a few years I've never seen that (well I might have and forgotten about it I'm getting old :s).
 
Old 08-11-2008, 06:16 PM   #5
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by knobby67 View Post
(well I might have and forgotten about it I'm getting old :s).
Be careful, you might be depreciated...
It's a situation that is more common to see in scripting languages where they bundle libraries and the language construct together.
 
Old 08-11-2008, 06:26 PM   #6
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
If you ever want to deprecate your own function and you use gcc, place the following between the end of its declaration and ;:
Code:
__attribute__ ((deprecated))
ta0kira
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
initlog is deprecated powah Linux - Software 0 11-12-2007 01:30 PM
initlog is deprecated powah Linux - General 0 10-31-2007 03:32 PM
alsaconf deprecated? myrdos2 Debian 9 08-11-2007 11:18 PM
rc.modules deprecated? hussar Slackware 2 09-23-2006 01:46 PM
network/options is deprecated Acron_0248 Debian 3 03-19-2006 06:12 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration