Squirrel

The programming language
Welcome to Squirrel Sign in | Join | Help
in Search

squirel 2.2.1 and last build of sqplus working?

Last post 10-01-2008, 1:45 AM by imtrobin. 5 replies.
Sort Posts: Previous Next
  •  08-01-2008, 6:43 AM 2668

    squirel 2.2.1 and last build of sqplus working?

    Hi all,

    I have downloaded squirrel 2.2.1 from web and I want to use sqplus.

    Last build of sqplus seems to be this http://downloads.sourceforge.net/sqplus/SQUIRREL2_1_1_sqplus_snapshot_20080713.zip,
    but it is tied to squirrel 2.1.1.

    Can I compile sqlplus that comes in this package and use it with squirrel 2.2.1?.

    Thanks in advance,
    HexDump.
  •  08-02-2008, 4:02 PM 2669 in reply to 2668

    Re: squirel 2.2.1 and last build of sqplus working?

    I believe that will work with hardly any change at all.

    I've been using it with various intermediate versions.

    Regards
    // ATS

  •  08-03-2008, 4:23 AM 2670 in reply to 2669

    Re: squirel 2.2.1 and last build of sqplus working?

    Thanks for the answer ats.

    HexDump.
  •  08-03-2008, 5:39 AM 2671 in reply to 2670

    Re: squirel 2.2.1 and last build of sqplus working?

    Hi,

    Sorry to bother you again but I´m getting some unresolved external that I don´t know where they come from. I think I´m doing things exatly the same unit tests does, but I´m still getting this external. They appear where I add this:

        SQClassDef<Player>(_T("Player"))
            .overloadFunc<bool (Player::*)(float,float,float,float,float)>(&Player::Init, _T("Init"))
            .overloadFunc<bool (Player::*)(const char*)>(&Player::Init, _T("Init"))
            .func(&Player::GetDexterity,_T("GetDexterity"))
            .func(&Player::GetDefense,_T("GetDefense"))
            .func(&Player::GetVitality,_T("GetVitality"))
            .func(&Player::GetPower,_T("GetPower"))
            .func(&Player::GetConcentration,_T("GetConcentration"))
            .func(&Player::GetLevel,_T("GetLevel"))
            .func(&Player::SetDexterity,_T("SetDexterity"))
            .func(&Player::SetVitality,_T("SetVitality"))
            .func(&Player::SetDefense,_T("SetDefense"))
            .func(&Player::SetPower,_T("SetPower"))
            .func(&Player::SetLevel,_T("SetLevel"));

    The unresolved external simbols are:

    unresolved external symbol "public: static class SquirrelObject __cdecl SquirrelVM::CreateFunction(class SquirrelObject &,int (__cdecl*)(struct SQVM *),wchar_t
    const *,wchar_t const *)"

     unresolved external symbol "int __cdecl SqPlus::CreateClass(struct SQVM *,class SquirrelObject &,void *,wchar_t const *,wchar_t const *)"

    unresolved external symbol "public: class SquirrelObject __thiscall SquirrelObject::GetValue(wchar_t const *)const "

    unresolved external symbol "public: int __thiscall SquirrelObject::SetValue(wchar_t const *,class SquirrelObject const &)"

    unresolved external symbol "public: int __thiscall SquirrelObject::Exists(wchar_t const *)const "

    unresolved external symbol "public: int __thiscall SquirrelObject::SetValue(wchar_t const *,int)"

    unresolved external symbol "public: static class SquirrelObject __cdecl SquirrelVM::CreateFunction(int (__cdecl*)(struct SQVM *),wchar_t const *,wchar_t const *)"

    Can anyone give any tip here? I have linked the last sqlplus shot with the test unit whitout any problem, so it stands problem is not the new sql plus build with squirrel 2.2.1.

    Thanks in advance,
    HexDump.

  •  08-03-2008, 12:33 PM 2672 in reply to 2671

    Re: squirel 2.2.1 and last build of sqplus working?

    Well, seeking some info on other posts, I found the solution. It is simply link with Unicode libs.

    I don´t know if this is heavier than linking with no unicode ones, and I don´t even care why I need unicode support :S.

    Anybody could clarify this please?

    Thanks in advacne,
    HexDump.
  •  10-01-2008, 1:45 AM 2804 in reply to 2672

    Re: squirel 2.2.1 and last build of sqplus working?

    I did a small modification so I didn't have to use unicode. In squirrel.h ln 84, I changed it to

    //#ifdef _UNICODE
    #if !defined(SQUNICODE) && defined(_UNICODE) && !defined(NO_SQUNICODE)
    #define SQUNICODE
    #endif

    And I defined NO_SQUNICODE at my application. Seems to work fine.
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems