User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 20

Thread: Extension compiling errors

  1. #1
    No Products Registered

    Join Date
    Mar 2009
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Extension compiling errors

    I am using Visual Studio 08, follow the JGED tutorial and I got 93 compiling errors. Im not gonna post em all but heres a few below. Was wondering if the converting from VC6 to 08 might have been screwed or what, cause I have no idea.

    [color:#CCCCCC]1>c:\users\g15\desktop\rsdk\extensions\template - copy\menu.h(21) : error C2146: syntax error : missing ';' before identifier 'Separator'
    1>c:\users\g15\desktop\rsdk\extensions\template - copy\menu.h(19) : error C3861: 'Item': identifier not found
    1>c:\users\g15\desktop\rsdk\extensions\template - copy\menu.h(21) : error C2146: syntax error : missing ';' before identifier 'Item'
    1>c:\users\g15\desktop\rsdk\inc\rtemplate.h(412) : error C2143: syntax error : missing ';' before 'return'
    1>c:\users\g15\desktop\rsdk\extensions\template - copy\menu.h(21) : error C3861: 'Item': identifier not found
    1>c:\users\g15\desktop\rsdk\extensions\template - copy\menu.h(33) : error C2146: syntax error : missing ';' before identifier 'Item'
    1>c:\users\g15\desktop\rsdk\extensions\template - copy\menu.h(32) : error C3861: 'Sub': identifier not found
    1>c:\users\g15\desktop\rsdk\extensions\template - copy\menu.h(36) : error C2146: syntax error : missing ';' before identifier 'End'
    1>c:\users\g15\desktop\rsdk\extensions\template - copy\menu.h(33) : error C3861: 'Item': identifier not found
    1>c:\users\g15\desktop\rsdk\extensions\template - copy\menu.h(36) : error C2065: 'End' : undeclared identifier
    1>c:\users\g15\desktop\rsdk\extensions\template - copy\menu.h(36) : error C2146: syntax error : missing ';' before identifier 'Sub'
    1>c:\users\g15\desktop\rsdk\extensions\template - copy\menu.h(37) : error C2146: syntax error : missing ';' before identifier 'Item'
    1>c:\users\g15\desktop\rsdk\extensions\template - copy\menu.h(36) : error C3861: 'Sub': identifier not found
    1>c:\users\g15\desktop\rsdk\inc\rtemplate.h(424) : error C2146: syntax error : missing ';' before identifier 'End'
    1>c:\users\g15\desktop\rsdk\extensions\template - copy\menu.h(37) : error C3861: 'Item': identifier not found[/color]

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extension compiling errors

    RickyRombo had the same problem. Here's the solution.

    Looki, are you sure it's not your version that's ancient? Everyone seems to still use SUB_START, SUB_END, etc.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Extension compiling errors

    I suspect some extension developers (like myself and Looki) might have a newer version than the current publicly available one, adding to the confusion!

  4. #4
    No Products Registered

    Join Date
    Mar 2009
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extension compiling errors

    Thanks for the replies. Did a few Find and Replaces and now only have 5 errors! so I'm gettin somewhere. also had to change a strdup() to _strdup() in the Props.h. So now all I have to fix is this I guess O_ o

    [color:#C0C0C0]1>Compiling...
    1>Main.cpp
    1>.\Main.cpp(21) : error C2144: syntax error : 'long' should be preceded by ';'
    1>.\Main.cpp(41) : error C2144: syntax error : 'short' should be preceded by ';'
    1>.\Main.cpp(41) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>.\Main.cpp(70) : error C2668: 'pow' : ambiguous call to overloaded function
    1> c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\math.h(575): could be 'long double pow(long double,int)'
    1> c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\math.h(527): or 'float pow(float,int)'
    1> c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\math.h(489): or 'double pow(double,int)'
    1> while trying to match the argument list '(int, int)'
    1>.\Main.cpp(70) : error C2668: 'pow' : ambiguous call to overloaded function
    1> c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\math.h(575): could be 'long double pow(long double,int)'
    1> c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\math.h(527): or 'float pow(float,int)'
    1> c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\math.h(489): or 'double pow(double,int)'
    1> while trying to match the argument list '(int, int)'[/color]

  5. #5
    No Products Registered

    Join Date
    Aug 2006
    Location
    Stockholm, Sweden
    Posts
    479
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extension compiling errors

    Show the 25 first lines of your Main.cpp ?

  6. #6
    No Products Registered

    Join Date
    Mar 2009
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extension compiling errors

    Here's some of my Main.cpp
    [color:#666666]#include "common.h"
    int StoredNumber = 0

    // ================================================== ==========================
    //
    // CONDITIONS
    //
    // ================================================== ==========================

    CONDITION(
    /* ID */ 0,
    /* Name */ "%o: String %0 has too many characters?",
    /* Flags */ EVFLAGS_ALWAYS|EVFLAGS_NOTABLE,
    /* Params */ (1,PARAM_NUMBER,"First number")
    ) {
    char * str = (char *)Param(TYPE_STRING);
    return strlen(str) > 10;

    }


    C
    // ================================================== ==========================
    //
    // ACTIONS
    //
    // ================================================== ==========================


    ACTION(
    /* ID */ 0,
    /* Name */ "Comment: %0",
    /* Flags */ 0,
    /* Params */ (1, PARAM_EXPSTRING,"Text of Comment")
    ) {

    }

    ACTION(
    /* ID */ 1,
    /* Name */ "Set Stored Number to %0",
    /* Flags */ 0,
    /* Params */ (1, PARAM_NUMBER,"Number")
    ) {
    StoredNumber = Param(TYPE_INT);
    }[/color]

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Extension compiling errors

    It has to be
    int StoredNumber = 0;

    You shouldn't touch RSDK at all if you don't even know how to separate statements in c++.

    Besides: You shouldn't define StoredNumber outside of the function, and the condition won't work, it gets a number, but reads a string, that means it expects you to enter a memory address to a string.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extension compiling errors

    Add a semicolon to the end of line 2, and delete the "C" before the line of comments for the actions section.

  9. #9
    No Products Registered

    Join Date
    Mar 2009
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extension compiling errors

    I know how to separate statements, but I was wondering if it was something unique? because when I add a semicolon it gives me a different error.

  10. #10
    No Products Registered

    Join Date
    Mar 2009
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extension compiling errors

    I'll just try re-installing VS since it's been goin crazy lately.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. mmf2 extension errors from mfas AND exes?
    By brawltaunts22 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 28th December 2012, 08:49 PM
  2. Compiling for iOS 5 errors
    By sinister in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 7th October 2011, 03:45 PM
  3. First ever extension: Errors and whatnot
    By Dines in forum Extension Development
    Replies: 3
    Last Post: 21st September 2008, 08:45 PM
  4. Compiling into Java
    By LazyCoder in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 18th September 2007, 04:28 PM
  5. mmf app compiling an .exe
    By falkon in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th June 2007, 03:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •