Sponsored Content
Top Forums Programming How to link lib or Dll using gcc Post 95108 by yuwang on Friday 6th of January 2006 11:40:16 AM
Old 01-06-2006
thanks for the comments anyway...

But one thing I may have been misleading there is...I am not
try to use the lib in a unix ...the gcc is a build-in compiler of my
simulator which I happend to use in Windows.....

the lib contains some math functions...such as FFT/IFFT...

thanks
 

10 More Discussions You Might Find Interesting

1. Programming

gcc Link problem

I have some crypting functions in object-file - for example,func.o Main file,from where crypting functions called, named as main.cpp . "gcc main.cpp -o main func.o" print "undefined reference to ... " But if I rename main.cpp to main.c and execute "gcc main.c -o main func.o" - ok. If anybody,... (3 Replies)
Discussion started by: Gigachel
3 Replies

2. Programming

use gcc and link with a library

Hello, J have a problem when I use gcc: This comand works: gcc -shared -fpic -I/usr/include/sys -I/usr/include -L/usr/lib/librt.sl essai1.c mylib.sl but gcc I/usr/include/sys -I/usr/include -L/usr/lib/librt.sl essai2.c -o essai don't work. The first command creates a dynamique... (1 Reply)
Discussion started by: AUBERT
1 Replies

3. UNIX for Dummies Questions & Answers

How to link to some lib in runtime as a nonsuper user?

My program is written in cpp and it uses a non standard library. I have compiled successfully by linking it to the library. But when i try to run the program. it give a error message like: "error while loading shared libraries: ***.so: cannot open shared object file: No such file or directory"... (2 Replies)
Discussion started by: zzz_zzz
2 Replies

4. Shell Programming and Scripting

create a .dll using cygwin and a .lib

Hi, I inherited a .lib file that I need to use to make a .dll file from a c++ file. I am able to do this in visual studio but I can not do this using cygwin. I would like to build the dll using the commandline in order to create a make file. Can someone help me. I would really appreciate it. ... (0 Replies)
Discussion started by: lsoleyma
0 Replies

5. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

6. Solaris

gcc lib error

Hi, I am working with solaris 9(SunOS mgsun 5.9 Generic_112233-07 sun4u sparc SUNW,Sun-Blade-100).I install the gcc 3.4.6 from sunfreeware website and when I am trying to run it,I am getting the error-- # gcc ld.so.1: gcc: fatal: libiconv.so.2: open failed: No such file or directory Killed... (2 Replies)
Discussion started by: smartgupta
2 Replies

7. Solaris

Accidentally deleted s. link /usr/lib/secure/s8_preload.so.1

I have accidentally deleted the sim link: /usr/lib/secure/s8_preload.so.1 -> /.SUNWnative/usr/lib/brand/solaris8/s8_preload.so.1 and now I can't do almost anything in my Solaris 8 container. I still have an open session to the machine. I can not create the link again because trying to run:... (1 Reply)
Discussion started by: qwertysas
1 Replies

8. Red Hat

ls: /lib/libattr.so.1: no version information available (required by /lib/libacl.so.1)

Hello, I'm experimenting a problem on my rh server. Red Hat Enterprise Linux AS release 3 (Taroon Update 8) 2.4.21-47.ELsmp #1 SMP i686 i686 i386 GNU/Linux It started with a segmentation fault on #id root To resolve it, I've installed coreutils-4.5.3-28.4.i386.rpm But, I... (6 Replies)
Discussion started by: gogol_bordello
6 Replies

9. Programming

g++ fails to link to static library when compilation and link in single command

Hello All, I've encountered a strange behaviour from g++ that doesn't make sense to me. Maybe you can shed some light on it: I have a bunch of source files and want to compile them and link them with a static library liba.a located in /usr/local/lib64 into an executable Approach 1 works... (0 Replies)
Discussion started by: magelord
0 Replies

10. Red Hat

link /lib /lib64

i have redhat 5 and i need to link /lib and /lib64 from workstation 1 to workstation 2 i need the same /lib /lib64 in two workstation how can i make that ???????? (4 Replies)
Discussion started by: ayman
4 Replies
mlib_SignalIFFT_4(3MLIB)				    mediaLib Library Functions					  mlib_SignalIFFT_4(3MLIB)

NAME
mlib_SignalIFFT_4, mlib_SignalIFFT_4_S16_S16, mlib_SignalIFFT_4_S16C_S16C, mlib_SignalIFFT_4_S16_S16C, mlib_SignalIFFT_4_S16, mlib_Sig- nalIFFT_4_S16C - signal Inverse Fast Fourier Transform (IFFT) SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> mlib_status mlib_SignalIFFT_4_S16_S16(mlib_s16 *dstr, mlib_s16 *dsti, const mlib_s16 *srcr, const mlib_s16 *srci, mlib_s32 order, mlib_s32 *scale); mlib_status mlib_SignalIFFT_4_S16C_S16C(mlib_s16 *dstc, const mlib_s16 *srcc, mlib_s32 order, mlib_s32 *scale); mlib_status mlib_SignalIFFT_4_S16_S16C(mlib_s16 *dstr, const mlib_s16 *srcc, mlib_s32 order, mlib_s32 *scale); mlib_status mlib_SignalIFFT_4_S16(mlib_s16 *srcdstr, mlib_s16 *srcdsti, mlib_s32 order, mlib_s32 *scale); mlib_status mlib_SignalIFFT_4_S16C(mlib_s16 *srcdstc, mlib_s32 order, mlib_s32 *scale); DESCRIPTION
Each of the functions in this group performs Inverse Fast Fourier Transform (IFFT). The following equation is used for forward FFT: 1 N-1 dst[k] = ---- SUM {src[n] * exp(-j2*PI*n*k/N)} C1 n=0 and the following equation is used for inverse FFT (IFFT): 1 N-1 dst[n] = ---- SUM {src[k] * exp(j2*PI*n*k/N)} C2 k=0 where k = 0, 1, ..., (N - 1) n = 0, 1, ..., (N - 1) N = 2**order The signal FFT/IFFT functions can be categorized into four groups according to the ScaleMode in the function names in the following form: mlib_Signal[FFT|IFFT]_ScaleMode_OutType_InType_OpMode() mlib_Signal[FFT|IFFT]_ScaleMode_DataType_OpMode() The scaling factors C1 and C2 used in the equations are defined as follows: o For ScaleMode = 1, C1 = 1 and C2 = 2**order. o For ScaleMode = 2, C1 = 2**order and C2 = 1. o For ScaleMode = 3, C1 = C2 = 2**(order/2) when order is even, or C1 = 2**((order+1)/2) and C2 = 2**((order-1)/2) when order is odd. o For ScaleMode = 4, C1 = 2**P and C2 = 2**Q, where P and Q are adaptive scaling factors and are generated by the functions. For functions with only real parts for the source signal, the imaginary parts are assumed to be all zero. For functions with only real parts for the destination signal, the imaginary parts are discarded. The functions with only one data type in their names perform the oper- ation in place. PARAMETERS
Each function takes some of the following arguments: dstr Destination signal array that contains the real parts. dsti Destination signal array that contains the imaginary parts. srcr Source signal array that contains the real parts. srci Source signal array that contains the imaginary parts. dstc Complex destination signal array. dstc[2*i] contains the real parts, and dstc[2*i+1] contains the imaginary parts. srcc Complex source signal array. srcc[2*i] contains the real parts, and srcc[2*i+1] contains the imaginary parts. srcdstr Source and destination signal array that contains the real parts. srcdsti Source and destination signal array that contains the imaginary parts. srcdstc Complex source and destination signal array. srcdstc[2*i] contains the real parts, and srcdstc[2*i+1] contains the imaginary parts. order Order of the transformation. The base-2 logarithm of the number of data samples. scale Adaptive scaling factor. RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
mlib_SignalFFT_1(3MLIB), mlib_SignalFFT_2(3MLIB), mlib_SignalFFT_3(3MLIB), mlib_SignalFFT_4(3MLIB), mlib_SignalIFFT_1(3MLIB), mlib_Sig- nalIFFT_2(3MLIB), mlib_SignalIFFT_3(3MLIB), attributes(5) SunOS 5.11 2 Mar 2007 mlib_SignalIFFT_4(3MLIB)
All times are GMT -4. The time now is 06:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy