SDK Example Compiling Problem

Aug 31, 2007 at 2:43pm

SDK Example Compiling Problem

hi,

I try to compile a SDK example visual project with Visual C++ 2005 Express
the example works on the computer which compiled it but not on other (error 14001)

i modified the .def file of projects to replace LIBRARY plussz by LIBRARY “plussz.mxe” and to avoid warning LNK4070
but it’s not enough

i think that i have to link all included library function but how can i do that ?
and how it’s not already made for the example project ?

i’m very, i’m very newbie but please help me ;-)

thanks

antoine

PS : Max/MSP 4.5.5, SDK 4.5.5

#33484
Sep 1, 2007 at 3:43am

verify that your dependencies are correct because if they’re not the linker
will break.

brandon

On 8/31/07, Antoine Villeret wrote:
>
>
> hi,
>
> I try to compile a SDK example visual project with Visual C++ 2005 Express
> the example works on the computer which compiled it but not on other
> (error 14001)
>
> i modified the .def file of projects to replace LIBRARY plussz by LIBRARY
> “plussz.mxe” and to avoid warning LNK4070
> but it’s not enough
>
> i think that i have to link all included library function but how can i do
> that ?
> and how it’s not already made for the example project ?
>
> i’m very, i’m very newbie but please help me ;-)
>
> thanks
>
> antoine
>
> PS : Max/MSP 4.5.5, SDK 4.5.5
>

#111635
Sep 1, 2007 at 4:29pm

> I try to compile a SDK example visual project with Visual C++ 2005
> Express
> the example works on the computer which compiled it but not on
> other (error 14001)

This would most likely indicate that the appropriate version of the
Microsoft C Runtime DLL is not present (or some other library if
you’re linking against something non-standard).

As of MaxMSP 4.6, we provide the following versions of the Microsoft
C Runtime DLL:

msvcr70.dll
msvcr71.dll
msvcr80.dll

The first thing to check is whether or not you object has been built
under the *debug* build setting. If it is, it will use the debug
libraries which are typically only present on a developer machine.
You will need to build a *release* build to distribute to non-
developer users.

If that’s not the problem, the next thing I’d check is whether or not
you’re using an older version of MaxMSP, which doesn’t have
msvcr80.dll included. This is the version you’ll need for projects
built with Visual Studio 2005. (You can verify, by looking to see if
msvcr80.dll is in the same directory as the Max application). If you
want users of older versions of Max to be able to use your extern,
you’ll either need to supply this DLL, or eliminate any dependencies
on this DLL, and remove it from your linker settings.

If that’s still not the problem, perhaps you are including some other
libraries that you’ll need to supply with your object. They should be
installed into the “support” folder in the same directory as the Max
application.

-Joshua

#111636
Sep 2, 2007 at 1:05pm

thanks a lot JKC for your support !
now it works fine !

thanks

antoine

#111637

You must be logged in to reply to this topic.