Csound Csound-dev Csound-tekno Search About

Re: Problem Compiling Csound with MS Visual C++ 5.0 Learning Ed.

Date1998-06-26 02:40
FromGabriel Maldonado
SubjectRe: Problem Compiling Csound with MS Visual C++ 5.0 Learning Ed.
Hi Hans,
maybe the file "nafxcw.lib" is not included in Learning edition of MSVC
5.0. Verify it! However MFC classes are not needed if you compile csound
in console mode. To compile Csound in console mode, you must create a
new project file (be sure to select "Win32 Console Application" when
creating it), name it "consound", then in the "Project-Settings"
dialog-box, you must switch to the "C/C++" table and be sure that the
"Preprocessor definition" text-box contains the following text:

NDEBUG,WIN32,_CONSOLE,SFIRCAM,PIPES,MACROS,RTAUDIO,MSVC,GAB_RT

(for the release version) or:

_DEBUG,WIN32,_CONSOLE,SFIRCAM,PIPES,MACROS,RTAUDIO,MSVC,GAB_RT

for the debug version.

Also, if you want enable realtime operations, be sure to add the text
"winmm.lib"   to the "Object/Library modules" text-box of  the "link"
tab in the Project-Settings dialog-box

Finally, add all the source files to the project and try to compile it.

All these compiler options are valid for Professional edition of MSVC. I
don't know if Learning edition sopport all of them. Good luck!

Happy compiling!

--
Gabriel Maldonado

http://www.agora.stm.it/G.Maldonado/home2.htm


Hans Mikelson wrote:

> Hi,
>
> I'm trying to learn some MS Windows programming and to start to start
> with I
> thought I would try to compile Csound (I also want to implement some
> new
> opcodes).  The program first wanted to create a new project file which
>
> seemed to go OK.  Then it had trouble finding things until I moved the
> files
> up to d:\csound\.  Now it compiles OK but when it is time to link I
> get the
> following error:
>
> Linking...
> LINK : fatal error LNK1104: cannot open file "nafxcw.lib"
> Error executing link.exe.
>
> When I search for this in help the help file it says:
>
> Object-code libraries for MFC use the following naming conventions.
> The
> library names have the form
> uAFXcWd.LIB
> where the letters shown in italic lowercase are placeholders for
> specifiers
> whose meanings are shown in the table Library Naming Conventions
> below:
> etc...
> NAFXCW.LIB
>  Release version
>
> Note If you need to build a library version, see the Readme.Txt file
> in the
> \MFC\Src directory. This file describes using the supplied makefile
> with
> NMake.
>
> Searching the CD for this file I find:
>
> To build a library in a particular configuration, use the NMAKE tool
> and the makefile which is in this directory.  The following arguments
> can be given to NMAKE to successfully build a specific library
> variant.
>   NMAKE {DEBUG=[0|1]} {BROWSE=[0|1]} {BROWSEONLY={0|1} \
>   {CODEVIEW=[0|1|2]} {OBJ=path} \
>   {PLATFORM=INTEL|ALPHA|MIPS|PPC|M68K|MPPC} \
>   {UNICODE=[0|1]} \
>   {OPT=}
> Previous versions of MFC supported MODEL and TARGET options to control
> the
> memory model and to support DOS/CONSOLE mode targetting. These options
> are
> no longer supported (your Win32 console application can still be
> linked to
> the GUI MFC library, NAFXCW[D].LIB).
>
> Now there doesn't seem to be any makefile in this directory.
>
> Anyone have any idee-ers?
>
> Bu-Bye,
> Hans Mikelson






Date1998-06-26 10:51
FromRobin Whittle
SubjectDSP Filter book
A while ago I bought an excellent looking book, which I am yet to 
read:

    Digital Filter Designer's Handbook  2nd Edition

    With C++ Algorithms

    C. Britton Rorabaugh  

    (Includes a floppy with C++ source code.)

    McGraw Hill 1997   ISBN 0-07-053806-9


I need to learn more about calculus before I start to read this 
seriously.  I have attempted to get by without this mathematical 
knowledge, and while it can be done with certain Finite Impulse 
Response filters, maths is a crucial part of understanding IIR 
filtering and probably a lot of FIR too.


A site with quite a few DSP books:
	
http://www.noblepub.com/Crestone/DigitalSignalProcessing.html


- Robin



===============================================================

Robin Whittle     rw@firstpr.com.au  http://www.firstpr.com.au
                  Heidelberg Heights, Melbourne, Australia 

First Principles  Research and expression: music, Internet 
                  music marketing, telecommunications, human 
                  factors in technology adoption. Consumer 
                  advocacy in telecommunications, especially 
                  privacy. Consulting and technical writing. 

Real World        Electronics and software for music: eg.
Interfaces        the Devil Fish mods for the TB-303. 

===============================================================