LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 04-27-2003, 12:00 PM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
Unhappy esound client programming


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?

Thanks!
 
Old 04-27-2003, 08:31 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Never used esd, but my educated guess is that you
need to provide a path to the shared library to
your compiler :)
Code:
g++ base.cpp -L</path/to/lib> -l<esd-lib-name>
Cheers,
Tink
 
Old 04-28-2003, 09:37 AM   #3
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
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.
 
Old 05-02-2003, 12:48 AM   #4
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
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?
 
  


Reply



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
how to implement fork() in socket programming b/w server/client in voice communicatio timeout4me Programming 1 08-05-2005 04:01 PM
programming telnet client with C? ezeke1 Programming 3 04-01-2005 08:12 AM
tcp/ip programming client side gajaykrishnan Linux - Networking 2 07-29-2004 11:58 PM
EsounD imonfya Linux - Hardware 9 07-05-2004 02:35 PM
Client-Server Programming Mohsen Programming 4 07-15-2003 01:58 AM

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

All times are GMT -5. The time now is 11:14 PM.

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