I uninstalled anaconda and something has been messed up.
with the libsndfile installed in :
C:\Dev-Cpp\bin\libsndfile

and running:
 C:\Dev-Cpp\bin>gcc -o a Stereo_to_mono.c -IC:\Dev-Cpp\bin\libsndfile\include 
-LC
:\Dev-Cpp\bin\libsndfile\lib -llibsndfile-1  

i get:

C:\Windows\TEMP/ccWIbaaa.o(.text+0x7c):Stereo_to_mono.c: undefined reference to
`sf_open'
C:\Windows\TEMP/ccWIbaaa.o(.text+0x121):Stereo_to_mono.c: undefined reference to
 `sf_open'
C:\Windows\TEMP/ccWIbaaa.o(.text+0x182):Stereo_to_mono.c: undefined reference to
 `sf_readf_float'
C:\Windows\TEMP/ccWIbaaa.o(.text+0x202):Stereo_to_mono.c: undefined reference to
 `sf_writef_float'
C:\Windows\TEMP/ccWIbaaa.o(.text+0x21c):Stereo_to_mono.c: undefined reference to
 `sf_close'
C:\Windows\TEMP/ccWIbaaa.o(.text+0x227):Stereo_to_mono.c: undefined reference to
 `sf_close'
C:\Windows\TEMP/ccWIbaaa.o(.text+0x268):Stereo_to_mono.c: undefined reference to
 `sf_close'
collect2: ld returned 1 exit status


if running:
C:\Dev-Cpp\bin>gcc -o a Stereo_to_mono.c -I\libsndfile\include -L\libsndfile\lib
 -llibsndfile-1


I get:

Stereo_to_mono.c:7:21: sndfile.h: No such file or directory
Stereo_to_mono.c: In function `main':
Stereo_to_mono.c:15: error: `SNDFILE' undeclared (first use in this function)
Stereo_to_mono.c:15: error: (Each undeclared identifier is reported only once
Stereo_to_mono.c:15: error: for each function it appears in.)
Stereo_to_mono.c:15: error: `psf_in' undeclared (first use in this function)
Stereo_to_mono.c:15: error: `psf_out' undeclared (first use in this function)
Stereo_to_mono.c:16: error: `SF_INFO' undeclared (first use in this function)
Stereo_to_mono.c:16: error: `psfinfo_in' undeclared (first use in this function)

Stereo_to_mono.c:16: error: `psfinfo_out' undeclared (first use in this 
function)
Stereo_to_mono.c:18: error: `sf_count_t' undeclared (first use in this function)

Stereo_to_mono.c:18: error: syntax error before "count"
Stereo_to_mono.c:27: error: syntax error before ')' token
Stereo_to_mono.c:28: error: syntax error before ')' token
Stereo_to_mono.c:31: error: `SFM_READ' undeclared (first use in this function)
Stereo_to_mono.c:36: error: `SF_FORMAT_TYPEMASK' undeclared (first use in this f
unction)
Stereo_to_mono.c:36: error: `SF_FORMAT_AIFF' undeclared (first use in this funct
ion)
Stereo_to_mono.c:49: error: `SF_FORMAT_WAV' undeclared (first use in this functi
on)
Stereo_to_mono.c:50: error: `SF_FORMAT_SUBMASK' undeclared (first use in this fu
nction)
Stereo_to_mono.c:52: error: `SFM_WRITE' undeclared (first use in this function)
Stereo_to_mono.c:60: error: `count' undeclared (first use in this function)


From: frank_pa...@hotmail.com
To: music-dsp@music.columbia.edu
Subject: RE: [music-dsp] libsndfile-1.lib not found in windows7
Date: Sat, 18 Jan 2014 21:00:36 +0000




how to uninstall anaconda? it's not in control panel, and i didn't find 
anything googling for it

> Date: Sat, 18 Jan 2014 15:30:13 -0500
> From: joao....@gmail.com
> To: music-dsp@music.columbia.edu
> Subject: Re: [music-dsp] libsndfile-1.lib not found in windows7
> 
> Your problem is that you installed Anaconda (a Python distribution) and it
> comes with its own version of GCC. Relative paths are probably now seen
> from this GCC point of view, not Dev-Cpp's GCC. You can either try to fix
> your system PATH variable or pass the full path to the -I and -L options in
> GCC.
> 
> --
> João Felipe Santos
> 
> 
> On Sat, Jan 18, 2014 at 7:51 AM, Pablo Frank <frank_pa...@hotmail.com>wrote:
> 
> > Installing   libsndfile-1.0.25-w64-setup.exe   from
> > http://www.mega-nerd.com/libsndfile/
> > in:
> > C:\Dev-Cpp\libsndfile
> >
> > the file "libsndfile-1.lib" being in:
> >
> > C:\Dev-Cpp\libsndfile\lib
> >
> > and the file "sndfile.h"  being in
> >
> > C:\Dev-Cpp\libsndfile\include
> >
> > and running :
> >
> > C:\Dev-Cpp>gcc -o a Stereo_to_mono.c -I\libsndfile\include
> > -L\libsndfile\lib -li
> > bsndfile-1
> >
> > the file "libsndfile-1.lib" is not found:
> >
> >
> > c:/anaconda/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64
> > -mingw32/bin/ld.exe: cannot find -libsndfile-1.lib
> > collect2.exe: error: ld returned 1 exit status
> >
> > I guess it's a minor issue. I googled for a solution but couldn't find.
> > Anyone knows/guess what's
> > the problem?
> >
> >
> >
> >
> >
> >
> >
> > > To: music-dsp@music.columbia.edu
> > > Date: Wed, 15 Jan 2014 07:00:00 -0500
> > > From: doug...@music.columbia.edu
> > > Subject: [music-dsp] [admin] music-dsp FAQ
> > >
> > > Hi,
> > >
> > > Just a reminder that if you are new to the list you should read the
> > > music-dsp FAQ. It contains answers to both technical _and_
> > > adminstrative questions that often come up on the list. If your question
> > > appears in the FAQ it is safe to assume that it has been discussed on the
> > > list many times in the past, and you should probably have a look through
> > > the list archives before posting your question to the list.
> > >
> > > http://music.columbia.edu/cmc/music-dsp/musicdspFAQ.html
> > >
> > >
> > > Also of interest to new and not-so-new list members:
> > >
> > > The music-dsp list archives
> > > http://music.columbia.edu/cmc/music-dsp/musicdsparchives.html
> > >
> > > The music-dsp source code archive
> > > http://www.musicdsp.org
> > >
> > > music-dsp books and reviews
> > > http://music.columbia.edu/cmc/music-dsp/dspbooks.html
> > >
> > >
> > > All this and more at:
> > > http://music.columbia.edu/cmc/music-dsp
> > >
> > >
> > > Hasta la pasta,
> > > douglas
> > >
> > > (this is an automated message sent out on the 1st and 15th of each month)
> > > --
> > > dupswapdrop -- the music-dsp mailing list and website:
> > > subscription info, FAQ, source code archive, list archive, book reviews,
> > dsp links
> > > http://music.columbia.edu/cmc/music-dsp
> > > http://music.columbia.edu/mailman/listinfo/music-dsp
> >
> > --
> > dupswapdrop -- the music-dsp mailing list and website:
> > subscription info, FAQ, source code archive, list archive, book reviews,
> > dsp links
> > http://music.columbia.edu/cmc/music-dsp
> > http://music.columbia.edu/mailman/listinfo/music-dsp
> >
> --
> dupswapdrop -- the music-dsp mailing list and website:
> subscription info, FAQ, source code archive, list archive, book reviews, dsp 
> links
> http://music.columbia.edu/cmc/music-dsp
> http://music.columbia.edu/mailman/listinfo/music-dsp
                                                                                
  
--
dupswapdrop -- the music-dsp mailing list and website:
subscription info, FAQ, source code archive, list archive, book reviews, dsp 
links
http://music.columbia.edu/cmc/music-dsp
http://music.columbia.edu/mailman/listinfo/music-dsp

Reply via email to