Sponsored Content
Full Discussion: dlopen Linux vs. OSX
Top Forums Programming dlopen Linux vs. OSX Post 302480031 by Corona688 on Monday 13th of December 2010 09:18:35 PM
Old 12-13-2010
Could you post a more representative sample? That's not enough to compile and test and see what you're doing.

Did you declare the function as virtual? You shouldn't try and overload things that aren't.
 

10 More Discussions You Might Find Interesting

1. Solaris

dlopen issue with a dll

HI All, I am trying to use a dll using dlopen but in vain. When I try to ldd that dll it returns no output. Can anybody please tell me how I can load this dll in my process space. PS: ldd -l returns a lot of unsatisfied dependent symbols. Thanks a lot in advance Codeman (0 Replies)
Discussion started by: codeman
0 Replies

2. Programming

dlopen failed!

I can open my so file successfully by calling dlopen directly in my main function. But if I fork a child process, and call dlopen in child process, it failed! I don't know why. Following is my code: #include <stdio.h> #include <errno.h> #include <dlfcn.h> void childFunc(void) { void... (1 Reply)
Discussion started by: virmin
1 Replies

3. Programming

compile error while using dlopen

Hi unix lovers, I am getting error while compile a function which uses dlopen. My code is I am getting error as follows Am I missing something? I think I am missing a lot :-) I am using solaris. Thanks in advance, -Ashish (5 Replies)
Discussion started by: shriashishpatil
5 Replies

4. Programming

resolve_symbols: loader error: dlopen:

when i try to run an executable i got the following error message: resolve_symbols: loader error: dlopen: what does this error mean and what should be done to avoid this? with regards (1 Reply)
Discussion started by: gfhgfnhhn
1 Replies

5. Programming

dlopen help

//foo.c #include<stdio.h> int pen(int a) { printf("%d",a); } $cc -c foo.c $ls -shared -o libfoo.so foo.o ///////////now libfoo.so formed //i have already designed libfoo.so //main.c #include<stdio.h> #include <dlfcn.h> int main() { (2 Replies)
Discussion started by: lookforlohith
2 Replies

6. Solaris

dlopen() on dolaris

Dear experts, please help #include <stdio.h> #include <dlfcn.h> #include <link.h> #include <iostream.h> #include<stdlib.h> #include<errno.h> void main() { printf("\n in the main\n"); void *handle; handle = dlopen("my.so", RTLD_LAZY); if( handle ==... (2 Replies)
Discussion started by: vin_pll
2 Replies

7. UNIX for Advanced & Expert Users

Help with porting a linux SNC driver to OSX

Hi guys! I'm a regular joe, so this thread might be in the wrong section and if I appear dumb it mostly because I am..and have lack of knowledge about the unix world. :) Please move the tread if needed. To the problem. We are allot of people in the OSx86 community that need a linux driver... (0 Replies)
Discussion started by: Blackshore
0 Replies

8. Programming

Sending emails in C program for multiple machines on Linux/OSX

Hey guys, i am creating a tool that'll run a couple network test, generate a report then email the report. Now i a bit stuck with the email sending part... I tried at first a script which worked on some machines but then it'll work fine on some machine and act up on others... I can't really rely... (2 Replies)
Discussion started by: Jess83
2 Replies

9. Programming

Linux: dlopen fails to find symbols

I've attached a tar.gz containing three tests to demonstrate the problem I'm having. Within the tar are two shared libraries, two test applications, and a Makefile that builds the three tests. The shared libaries are libshlib1.so and libshlib2.so. Both export a function, libFunc, which takes... (5 Replies)
Discussion started by: DreamWarrior
5 Replies

10. Shell Programming and Scripting

Flash And Fade DEMO For Mac OSX 10.7.5, (And Linux?).

This is an AT A GLANCE shell DEMO that does:- 1) 10 centred greyscale fades without warning beeps. 2) 5 centred yellow "WARNING!" flashes with beeps every ON state. 3) 5 FULL widowed red "DANGER!!!" flashes with beeps in the ON and OFF states. It assumes that the warning bell is enabled... (0 Replies)
Discussion started by: wisecracker
0 Replies
AFSETVIRTUALSAMPLEFO(3) 												   AFSETVIRTUALSAMPLEFO(3)

NAME
afSetVirtualByteOrder, afSetVirtualChannels, afSetVirtualPCMMapping, afSetVirtualSampleFormat - set the virtual data format for a track in an audio file SYNOPSIS
#include <audiofile.h> int afSetVirtualByteOrder (AFfilehandle file, int track, int byteOrder); int afSetVirtualChannels (AFfilehandle file, int track, int channels); int afSetVirtualSampleFormat (AFfilehandle file, int track, int sampleFormat, int sampleWidth); int afSetVirtualPCMMapping (AFfilehandle file, int track, double slope, double intercept, double minclip, double maxclip); PARAMETERS
o file is an AFfilehandle which refers to an open audio file and is usually created by afOpenFile. o track is an integer which identifies a particular track in an open audio file. The only valid track is AF_DEFAULT_TRACK for all currently supported file formats. o sampleFormat is an integer which denotes a virtual sample format. Valid values are AF_SAMPFMT_TWOSCOMP, AF_SAMPFMT_UNSIGNED, AF_SAMPFMT_FLOAT, and AF_SAMPFMT_DOUBLE. o sampleWidth is a positive integer which specifies the number of bits in a sample. o channels is a positive integer which specifies the number of interleaved audio channels in the given audio track. o byteOrder is an integer which specifies the virtual byte order of samples in the given audio track. byteOrder can be either AF_BYTEORDER_BIGENDIAN or AF_BYTEORDER_LITTLEENDIAN. o slope and intercept are double-precision floating point values which indicate the audio data sample slope and zero-crossing value, respectively, for the given sample format. o minclip and maxclip are double-precision floating point values which indicates the minimum or maximum sample values to be returned. Any values less than minclip will be set to minclip, and any values greater than maxclip will be set to maxclip. RETURN VALUE
These functions return 0 for success and -1 for failure. AUTHOR
Michael Pruett <michael@68k.org> Audio File Library 0.3.6 03/06/2013 AFSETVIRTUALSAMPLEFO(3)
All times are GMT -4. The time now is 08:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy