ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to program an application that will play st by esd. I use Mandrake 9.1. I installed the rpm package libesound0-devel-0.2.29-2mdk which has /usr/include/esd.h in it. I made a veeeery simple program in C++ (just to test) but when I compile it, the compiler complains:
[antoranz@carcachita esd]$ g++ base.cpp
/home/antoranz/tmp/ccHOzvUJ.o(.text+0x29): In function `main':
: undefined reference to `esd_print_server_info'
collect2: ld returned 1 exit status
This is the source code:
[antoranz@carcachita esd]$ cat base.cpp
#include <stdio.h>
#include <esd.h>
esd_server_info_t serverInfo;
int main () {
printf("Getting server info\n");
esd_print_server_info(&serverInfo);
printf("Esd Version:%d\n", serverInfo.version);//#esd_server_info_t.version);
}
Can anybody tell me how to work around it?
I have been for two days trying to get documents about writing esound clients, but found extremely little information. Can U tell me where to look 2?
Eurgh, esound is junk. It's been obsolete for years, unfortunately it does the job just well enough that nobody has built something better (that's portable, jack is a lot better if you only care about linux).
If you just want to go "boing" you should be using the KDE or GNOME APIs really, they abstract you from all this stuff. eSound is more a generic mixing service.
Thanks, guys. I was able to compile it using esdcfg... u ask it for the options that have to be given to g++. However, I wasn't able to use the api properli. Any places where i can look to learn to use it?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.