emcc not support makefile in my mac

182 views
Skip to first unread message

龚楷楠

unread,
Mar 18, 2015, 6:37:47 AM3/18/15
to emscripte...@googlegroups.com
I am trying to run a sample emscripten code downloaded from https://github.com/pbcostello/ems1

Typing

emcc main.cpp -o main.js -s EXPORTED_FUNCTIONS=['_getSqrt','_getStringLength']

can result in the main.js file generated successfully.

But typing 

emcc makefile

result in such error messages:

ERROR    root: makefile: Input file has an unknown suffix, don't know what to do with it!

Even I created a new empty makefile and type emcc makefile, the same error appears.

So I guess emcc command can't parse makefile files?

Or do I type a wrong command?


My emcc version is:

emcc (Emscripten GCC-like replacement + linker emulating GNU ld ) 1.29.0

clang version 3.4 

Target: x86_64-apple-darwin13.4.0

Thread model: posix

INFO     root: (Emscripten: Running sanity checks)


Thank you


Brion Vibber

unread,
Mar 18, 2015, 9:43:20 AM3/18/15
to emscripten Mailing List

You want em++ for c++.

-- brion

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brion Vibber

unread,
Mar 18, 2015, 9:44:17 AM3/18/15
to emscripten Mailing List

Also you want to use emmake, not emcc, for the makefile.

-- brion

On Mar 18, 2015 3:37 AM, "龚楷楠" <cny...@gmail.com> wrote:

龚楷楠

unread,
Mar 18, 2015, 11:09:01 PM3/18/15
to emscripte...@googlegroups.com
Thanks a lot for your quick reply.

emmake does work.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages