Hi everybody,
I'm a french student in computer science and I would like to make a wrapper in order to use the Google libwebp in ActionScript.
I started to write a main.c file which will allow me to make a bridge between AS3 and C libwebp using Alchemy.
The compilation works fine as long as I don't use the WebPDecodeARGB function. as soon as I call this function (uncomment the line), the Flex Compiler shows more than 100 errors in the console.
A piece of the errors :
- Morgan@Morgan-PC /cygdrive/c/alchemy/samples/WebPWrapper/libwebp
- $ gcc main.c -Isrc -O3 -Wall -swc src/libwebp.a -o WebPWrapper.swc
- Array @ARGV missing the @ in argument 1 of shift() at /cygdrive/c/alchemy/achacks/gcc line 218.
- WARNING: While resolving call to function 'main' arguments were dropped!
- WARNING: While resolving call to function 'stub_zero' arguments were dropped!
- WARNING: While resolving call to function 'stub_zero' arguments were dropped!
- WARNING: While resolving call to function 'stub_zero' arguments were dropped!
- WARNING: While resolving call to function 'stub_zero' arguments were dropped!
- WARNING: While resolving call to function 'stub_zero' arguments were dropped!
- WARNING: While resolving call to function 'stub_zero' arguments were dropped!
- WARNING: While resolving call to function 'stub_zero' arguments were dropped!
- WARNING: While resolving call to function 'stub_zero' arguments were dropped!
-
- [Compiler] Error #1071: Syntax error: expected a definition keyword (such as function) after attribute bswap, not i0.
- 6056.achacks.as, Ln 35823, Col 11:
- bswap i0 =
- ..........^
-
- [Compiler] Error #1084: Syntax error: expecting rightbrace before semicolon.
- 6056.achacks.as, Ln 35830, Col 18:
- mstate.esp -= 4;(mstate.funcs[___ashldi3])()
- .................^
-
- [Compiler] Error #1131: Classes must not be nested.
- 6056.achacks.as, Ln 36022, Col 14:
- public final class FSM_VP8GetSignedValue extends Machine {
- .............^
-
- [Compiler] Error #1071: Syntax error: expected a definition keyword (such as function) after attribute bswap, not i0.
- 6056.achacks.as, Ln 36161, Col 11:
- bswap i0 =
- ..........^
-
- [Compiler] Error #1084: Syntax error: expecting rightbrace before semicolon.
- 6056.achacks.as, Ln 36168, Col 18:
- mstate.esp -= 4;(mstate.funcs[___ashldi3])()
- .................^
-
- [Compiler] Error #1131: Classes must not be nested.
- 6056.achacks.as, Ln 36530, Col 14:
- public final class FSM_VP8GetBit extends Machine {
- .............^
etc ...
I put a link to my main.c on pastebin.com if you want to take a look : http://pastebin.com/q6UMfV5b
Anyone could help me please ?
Thanks a lot for you help.