Thanks a lot for your quick reply.

emmake does work.

On Wednesday, March 18, 2015 at 9:44:17 PM UTC+8, Brion Vibber wrote:
>
> Also you want to use emmake, not emcc, for the makefile.
>
> -- brion
> On Mar 18, 2015 3:37 AM, "龚楷楠" <[email protected] <javascript:>> wrote:
>
>> 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
>>
>>
>>  -- 
>> 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 [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to