windows compiling (cygwin)

Jan 13, 2011 at 11:48pm

windows compiling (cygwin)

i am trying to compile my first external with cygwin
i could build the simplemax example, but when i try to compile my own
i am stuck with the following error:

In file included from myobject.c:23: ../../c74support/max-includes/ext_parameter.h:262:27: warning: no newline at end of file

what can this mean?
do i need another SDK for windows?

thanks
klaus

#54394
Jan 14, 2011 at 1:44pm

i get the same errors when trying to compile jslider from the examples.
please see the screenshot.
thanks
klaus

[attachment=151264,1664]

Attachments:
  1. screenshotcygwin.png
#195851
Jan 14, 2011 at 4:17pm

hi klaus,

the newline thing is just a warning. the real problem is that you need to add a missing .c file to your gcc compile. specifically, you need to add max-includes/common/commonsyms.c.

cheers,
tim

#195852
Jan 15, 2011 at 2:30am

hi tim,
thank you!
please be patient with my next question.
i tried many different options including -lobjc -l -c and -L but could not achieve a nice result.
what exactly should be written in the gcc command?

gcc -shared -mno-cygwin -o simplemax.mxe simplemax.o simplemax.def -L../../c74support/max-includes -lMaxAPI -lcommon/commonsym.c

gives a not found.

also tried simply putting commonsym.c into max-includes…

grmpf
klaus

#195853
Jan 15, 2011 at 3:41pm

Hi Klaus,

Have you looked into the “collect” example in the SDK? It includes a Makefile for compiling with GCC on windows, and it includes compiling commonsyms.c as part of the process.

Hope this helps!
Tim

#195854
Jan 16, 2011 at 11:38pm

thanks tim
this pointed me in the right direction.
its -include in the first gcc command:

gcc -c -mno-cygwin -DWIN_VERSION -DWIN_EXT_VERSION -I../../c74support/max-includes -include common/commonsyms.c simplemax.c

so i got my first .mxe )))

cheers
klaus

#195855

You must be logged in to reply to this topic.