| you may as well try and find a stdint.h (say from mingw) and put it with
the other headers).
----- Original Message -----
From: "Rory Walsh"
To:
Sent: Wednesday, May 06, 2009 7:50 PM
Subject: [Csnd] Re: Re: Re: Re: Re: Re: creating a MSVC import lib for
Visual Studio Express...
With that I was getting a could not find stdint.h.. so I tried using
-DMSVC. I'm getting close, once it's done it's done and hopefully
won't have to go messing around with these things again, I can't see
myself using MSVC for anything but this one project.
Rory.
2009/5/6 victor :
> Try not to define MSVC...
> ----- Original Message ----- From: "Rory Walsh"
> To:
> Sent: Wednesday, May 06, 2009 5:11 PM
> Subject: [Csnd] Re: Re: Re: Re: creating a MSVC import lib for Visual
> Studio
> Express...
>
>
> Ok next thing is that I'm getting ambiguous symbols between the GUI
> lib I'm using and some MSVC defines found in sysdep.h? Any ideas how I
> can resolve these?
>
> 1>c:\mydocuments\sourcecode\csound5\csound5\h\csound.h(456) : error
> C2872: 'int32' : ambiguous symbol
> 1> could be
> 'c:\mydocuments\sourcecode\csound5\csound5\h\sysdep.h(53) : int int32'
> 1> or
> 'c:\mydocuments\sourcecode\juce\src\juce_core\basics\juce_MathsFunctions.h(52)
> : juce::int32'
> 1>c:\mydocuments\sourcecode\csound5\csound5\h\csound.h(459) : error
> C2872: 'int32' : ambiguous symbol
>
> The relavant section of the sysdep.h file is here:
>
> #ifdef MSVC
> typedef __int32 int32;
> typedef __int16 int16;
> typedef unsigned __int32 uint32;
> typedef unsigned __int16 uint16;
> #else
>
> Rory.
>
> 2009/5/6 Rory Walsh :
>>
>> Adding them directly did the trick, thanks for that. It's been almost
>> ten years since I used any MS IDEs, at times like this you gotta love
>> the command line. Thanks again, I hope I don't hit any other snags!
>>
>> 2009/5/6 Andy Fillebrown :
>>>
>>> Hi Rory,
>>>
>>> I'm not sure exactly what the problems you're running into are, but it
>>> would seem that in addition to linking to csound32.dll.5.2 you also need
>>> to
>>> link to csnd.dll. Is this something you've already tried?
>>>
>>> ---
>>>
>>> In the IDE you can add the directory containing the libs globally in:
>>> Tools -> Options -> Projects and Solutions -> VC++ Directories -> Show
>>> directories for (drop-down combo box on top right) -> Library files
>>>
>>> ...or you can add the directory to the project locally in:
>>> Project -> Properties -> Configuration Properties -> Linker ->
>>> General ->
>>> Additional Library Directories
>>>
>>> Either way, you also need to add the 2 libraries by name in:
>>> Project -> Properties -> Configuration Properties -> Linker -> Input ->
>>> Additional Dependencies
>>>
>>> If you add the librarys' directory globally or locally in the
>>> "Additional
>>> Library Directories" field you can just specify the library name without
>>> a
>>> path in the "Additional Dependencies" field. If you haven't added the
>>> librarys' directory to the IDE globally or locally then you need to
>>> specify
>>> the full path to each library in "Additional Dependencies".
>>>
>>> My preferred method is to add the directories to each project locally.
>>> It
>>> keeps things uncluttered in the tiny dialog boxes and it doesn't add an
>>> unused global library directory to search through if you're working on a
>>> project that doesn't need csound. The only drawback to adding the
>>> directory
>>> locally is that it has to be done for each new project that links to the
>>> csound libraries, which isn't that big a deal but is easy to overlook
>>> when
>>> creating a new project.
>>>
>>> The reason why the MS libraries only need the directory to be able to
>>> link up is because the MS libraries are automatically inherited by each
>>> project, as you can see if you expand the "Additional Dependencies"
>>> field
>>> using the "..." box.
>>>
>>> ---
>>>
>>> Anyway, I may be misunderstanding your question, but hopefully that
>>> helps.
>>>
>>> Regards,
>>> -andy.f
>>>
>>>
>>>
>>> ----- "Rory Walsh" wrote:
>>>>
>>>> The latest on this is that I can build using the csound.h header. At
>>>> least I can create an instance of CSOUND without any problems. I only
>>>> get these unresolved errors when I include the csound.hpp header file
>>>> instead, this is without even creating or declaring a Csound() class.
>>>> I've seen on the list that people have been able to get this going
>>>> using the MS command line tools where you can specify exactly the lib
>>>> to import. From the IDE it seems you need only include the directory
>>>> to the .lib, does anyone know how to explicitly tell the IDE to import
>>>> to a particular lib? Specifying the paths to library directories does
>>>> however work with all my MS created libraries.
>>>>
>>>> Rory.
>>>>
>>>>
>>>> 2009/5/5 Rory Walsh :
>>>> > With regards to the export symbols? I tried editing the .def file to
>>>> > add underscores but as it didn't work I didn't mention it in my
>>>> > earlier post. Saying that should I add underscores to everything or
>>>> > just the exports? Here's the first few lines from the def file:
>>>> >
>>>> > LIBRARY csound32.dll.5.2
>>>> > EXPORTS
>>>> > cscoreCopyEvent
>>>> > cscoreCreateEvent
>>>> > cscoreDefineEvent
>>>> > cscoreFileClose
>>>> > cscoreFileGetCurrent
>>>> > cscoreFileOpen
>>>> > cscoreFileSetCurrent
>>>> > cscoreFreeEvent
>>>> > cscoreGetEvent
>>>> > cscoreListAppendEvent
>>>> > cscoreListAppendList
>>>> > cscoreListAppendStringEvent
>>>> >
>>>> > I tried adding some underscores to the exported functions but they
>>>> > still showed up as unresolved.
>>>> >
>>>> > Rory.
>>>> >
>>>> >
>>>> >
>>>> > 2009/5/5 Michael Gogins :
>>>> >> _x() versus x()?
>>>> >>
>>>> >> Regards,
>>>> >> Mike
>>>> >>
>>>> >> On 5/5/09, Rory Walsh wrote:
>>>> >>> I know this has been discussed many times but I'm having problems
>>>> >>> linking to an import library I created using pexports and the MS
>>>> lib
>>>> >>> tool. I followed the steps outlined below:
>>>> >>>
>>>> >>> 1) create the DEF file (using pexports):
>>>> >>> pexports csound32.dll.5.1 > csound32.def
>>>> >>> 2) then create the lib file (using the MSVC lib tool):
>>>> >>> lib /machine:i386 /def:csound32.def
>>>> >>>
>>>> >>> This all works fine but when I try to link to this .lib file I get
>>>> a
>>>> >>> whole load of unresolved errors:
>>>> >>>
>>>> >>> 1>ApplicationStartup.obj : error LNK2001: unresolved external
>>>> symbol
>>>> >>> _csoundGet0dBFS
>>>> >>> 1>ApplicationStartup.obj : error LNK2001: unresolved external
>>>> symbol
>>>> >>> _csoundGetRtPlayUserData
>>>> >>> 1>ApplicationStartup.obj : error LNK2001: unresolved external
>>>> symbol
>>>> >>> _csoundEnableMessageBuffer
>>>> >>> 1>ApplicationStartup.obj : error LNK2001: unresolved external
>>>> symbol
>>>> >>> _csoundGetControlChannelParams
>>>> >>> 1>ApplicationStartup.obj : error LNK2001: unresolved external
>>>> symbol
>>>> >>> _csoundTableGet
>>>> >>> 1>ApplicationStartup.obj : error LNK2001: unresolved external
>>>> symbol
>>>> >>> _csoundSetDrawGraphCallback
>>>> >>> 1>ApplicationStartup.obj : error LNK2001: unresolved external
>>>> symbol
>>>> >>> _csoundSetRecopenCallback
>>>> >>> 1>ApplicationStartup.obj : error LNK2001: unresolved external
>>>> symbol
>>>> >>> _csoundGetMessageLevel
>>>> >>> 1>ApplicationStartup.obj : error LNK2001: unresolved external
>>>> symbol
>>>> >>> _csoundKeyPress
>>>> >>> 1>ApplicationStartup.obj : error LNK2001: unresolved external
>>>> symbol
>>>> >>> _csoundGetRtRecordUserData
>>>> >>> (this is just a sample of the errors, I get 114 of them...)
>>>> >>>
>>>> >>> The import library is in the same folder as other libraries I use
>>>> >>> which are all found. Anyone have any ideas?
>>>> >>>
>>>> >>> Rory.
>>>> >>>
>>>> >>>
>>>> >>> Send bugs reports to this list.
>>>> >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>> "unsubscribe
>>>> >>> csound"
>>>> >>>
>>>> >>
>>>> >>
>>>> >> --
>>>> >> Michael Gogins
>>>> >> Irreducible Productions
>>>> >> http://www.michael-gogins.com
>>>> >> Michael dot Gogins at gmail dot com
>>>> >>
>>>> >>
>>>> >> Send bugs reports to this list.
>>>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>> "unsubscribe csound"
>>>> >>
>>>> >
>>>>
>>>>
>>>> Send bugs reports to this list.
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>> "unsubscribe csound"
>>>
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"=
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"=
|