Results 1 to 11 of 11

Thread: cmixv18_surya

  1. #1
    Member
    Join Date
    Aug 2015
    Location
    indonesia
    Posts
    380
    Thanks
    57
    Thanked 75 Times in 58 Posts

    cmixv18_surya

    this is cmixv18 with some improvement. i guess it can be better than the original one.
    @shelwien could you compile it please ? thank you
    Attached Files Attached Files

  2. #2
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    3,982
    Thanks
    298
    Thanked 1,309 Times in 745 Posts
    doesn't work:
    Code:
    <command-line>: note: this is the location of the previous definition
    ./src/models/paq8.cpp: In constructor 'paq8::TextModel::TextModel(paq8::U32)':
    ./src/models/paq8.cpp:3113:235: error: no matching function for call to 'paq8::ContextMap2::ContextMap2()'
       TextModel(const U32 Size) : Map(Size, 33), Stemmers(Language::Count-1), Languages(Language::Count-1), WordPos(0x10000), State(Parse::Unknown), pState(State), Lang{ {0}, {0}, Language::Unknown, Language::Unknown }, Info{}, ParseCtx(0) {
                                                                                                                                                                                                                                               ^
    ./src/models/paq8.cpp:1237:3: note: candidate: 'paq8::ContextMap2::ContextMap2(paq8::U64, paq8::U32)'
       ContextMap2(const U64 Size, const U32 Count) : C(Count), Table(Size>>6), BitState(Count), BitState0(Count), ByteHistory(Count), Contexts(Count), Chk(Count), HasHistory(Count), mask(U32(Table.size()-1)), hashbits(ilog2(mask+1)) {
       ^~~~~~~~~~~
    ./src/models/paq8.cpp:1237:3: note:   candidate expects 2 arguments, 0 provided
    ./src/models/paq8.cpp:3113:235: error: no matching function for call to 'paq8::ContextMap2::ContextMap2()'
       TextModel(const U32 Size) : Map(Size, 33), Stemmers(Language::Count-1), Languages(Language::Count-1), WordPos(0x10000), State(Parse::Unknown), pState(State), Lang{ {0}, {0}, Language::Unknown, Language::Unknown }, Info{}, ParseCtx(0) {
                                                                                                                                                                                                                                               ^
    ./src/models/paq8.cpp:1237:3: note: candidate: 'paq8::ContextMap2::ContextMap2(paq8::U64, paq8::U32)'
       ContextMap2(const U64 Size, const U32 Count) : C(Count), Table(Size>>6), BitState(Count), BitState0(Count), ByteHistory(Count), Contexts(Count), Chk(Count), HasHistory(Count), mask(U32(Table.size()-1)), hashbits(ilog2(mask+1)) {
       ^~~~~~~~~~~
    ./src/models/paq8.cpp:1237:3: note:   candidate expects 2 arguments, 0 provided
    ./src/models/paq8.cpp:3113:235: error: no matching function for call to 'paq8::ContextMap2::ContextMap2()'
       TextModel(const U32 Size) : Map(Size, 33), Stemmers(Language::Count-1), Languages(Language::Count-1), WordPos(0x10000), State(Parse::Unknown), pState(State), Lang{ {0}, {0}, Language::Unknown, Language::Unknown }, Info{}, ParseCtx(0) {
                                                                                                                                                                                                                                               ^
    ./src/models/paq8.cpp:1237:3: note: candidate: 'paq8::ContextMap2::ContextMap2(paq8::U64, paq8::U32)'
       ContextMap2(const U64 Size, const U32 Count) : C(Count), Table(Size>>6), BitState(Count), BitState0(Count), ByteHistory(Count), Contexts(Count), Chk(Count), HasHistory(Count), mask(U32(Table.size()-1)), hashbits(ilog2(mask+1)) {
       ^~~~~~~~~~~

  3. Thanks:

    suryakandau@yahoo.co.id (8th March 2020)

  4. #3
    Member
    Join Date
    Aug 2015
    Location
    indonesia
    Posts
    380
    Thanks
    57
    Thanked 75 Times in 58 Posts

    Question

    Quote Originally Posted by Shelwien View Post
    doesn't work:
    Code:
    <command-line>: note: this is the location of the previous definition
    ./src/models/paq8.cpp: In constructor 'paq8::TextModel::TextModel(paq8::U32)':
    ./src/models/paq8.cpp:3113:235: error: no matching function for call to 'paq8::ContextMap2::ContextMap2()'
       TextModel(const U32 Size) : Map(Size, 33), Stemmers(Language::Count-1), Languages(Language::Count-1), WordPos(0x10000), State(Parse::Unknown), pState(State), Lang{ {0}, {0}, Language::Unknown, Language::Unknown }, Info{}, ParseCtx(0) {
                                                                                                                                                                                                                                               ^
    ./src/models/paq8.cpp:1237:3: note: candidate: 'paq8::ContextMap2::ContextMap2(paq8::U64, paq8::U32)'
       ContextMap2(const U64 Size, const U32 Count) : C(Count), Table(Size>>6), BitState(Count), BitState0(Count), ByteHistory(Count), Contexts(Count), Chk(Count), HasHistory(Count), mask(U32(Table.size()-1)), hashbits(ilog2(mask+1)) {
       ^~~~~~~~~~~
    ./src/models/paq8.cpp:1237:3: note:   candidate expects 2 arguments, 0 provided
    ./src/models/paq8.cpp:3113:235: error: no matching function for call to 'paq8::ContextMap2::ContextMap2()'
       TextModel(const U32 Size) : Map(Size, 33), Stemmers(Language::Count-1), Languages(Language::Count-1), WordPos(0x10000), State(Parse::Unknown), pState(State), Lang{ {0}, {0}, Language::Unknown, Language::Unknown }, Info{}, ParseCtx(0) {
                                                                                                                                                                                                                                               ^
    ./src/models/paq8.cpp:1237:3: note: candidate: 'paq8::ContextMap2::ContextMap2(paq8::U64, paq8::U32)'
       ContextMap2(const U64 Size, const U32 Count) : C(Count), Table(Size>>6), BitState(Count), BitState0(Count), ByteHistory(Count), Contexts(Count), Chk(Count), HasHistory(Count), mask(U32(Table.size()-1)), hashbits(ilog2(mask+1)) {
       ^~~~~~~~~~~
    ./src/models/paq8.cpp:1237:3: note:   candidate expects 2 arguments, 0 provided
    ./src/models/paq8.cpp:3113:235: error: no matching function for call to 'paq8::ContextMap2::ContextMap2()'
       TextModel(const U32 Size) : Map(Size, 33), Stemmers(Language::Count-1), Languages(Language::Count-1), WordPos(0x10000), State(Parse::Unknown), pState(State), Lang{ {0}, {0}, Language::Unknown, Language::Unknown }, Info{}, ParseCtx(0) {
                                                                                                                                                                                                                                               ^
    ./src/models/paq8.cpp:1237:3: note: candidate: 'paq8::ContextMap2::ContextMap2(paq8::U64, paq8::U32)'
       ContextMap2(const U64 Size, const U32 Count) : C(Count), Table(Size>>6), BitState(Count), BitState0(Count), ByteHistory(Count), Contexts(Count), Chk(Count), HasHistory(Count), mask(U32(Table.size()-1)), hashbits(ilog2(mask+1)) {
       ^~~~~~~~~~~

    that is strange because i just add line 3500-3590.

  5. #4
    Member
    Join Date
    Aug 2015
    Location
    indonesia
    Posts
    380
    Thanks
    57
    Thanked 75 Times in 58 Posts
    Quote Originally Posted by suryakandau@yahoo.co.id View Post
    that is strange because i just add line 3500-3590.
    i have fixed that. @shelwien could you compile it again please ? thank you
    Attached Files Attached Files

  6. #5
    Member
    Join Date
    Nov 2015
    Location
    -
    Posts
    53
    Thanks
    253
    Thanked 15 Times in 12 Posts
    Quote Originally Posted by suryakandau@yahoo.co.id View Post
    i have fixed that. @shelwien could you compile it again please ? thank you
    Doesn't work! x2

    Code:
    ./models/paq8.cpp: In constructor 'paq8::TextModel::TextModel(paq8::U32)':./models/paq8.cpp:3113:252: error: no matching function for call to 'paq8::ContextMap2::ContextMap2()'
       TextModel(const U32 Size) : Map(Size, 33), Mapxxx(Size, 10),Stemmers(Language::Count-1), Languages(Language::Count-1), WordPos(0x10000), State(Parse::Unknown), pState(State), La
    ng{ {0}, {0}, Language::Unknown, Language::Unknown }, Info{}, ParseCtx(0) {
    
    
                                                                            ^
    ./models/paq8.cpp:1237:3: note: candidate: 'paq8::ContextMap2::ContextMap2(paq8::U64, paq8::U32)'
       ContextMap2(const U64 Size, const U32 Count) : C(Count), Table(Size>>6), BitState(Count), BitState0(Count), ByteHistory(Count), Contexts(Count), Chk(Count), HasHistory(Count), m
    ask(U32(Table.size()-1)), hashbits(ilog2(mask+1)) {
       ^~~~~~~~~~~
    ./models/paq8.cpp:1237:3: note:   candidate expects 2 arguments, 0 provided
    ./models/paq8.cpp:3113:252: error: no matching function for call to 'paq8::ContextMap2::ContextMap2()'
       TextModel(const U32 Size) : Map(Size, 33), Mapxxx(Size, 10),Stemmers(Language::Count-1), Languages(Language::Count-1), WordPos(0x10000), State(Parse::Unknown), pState(State), La
    ng{ {0}, {0}, Language::Unknown, Language::Unknown }, Info{}, ParseCtx(0) {
    
    
                                                                            ^
    ./models/paq8.cpp:1237:3: note: candidate: 'paq8::ContextMap2::ContextMap2(paq8::U64, paq8::U32)'
       ContextMap2(const U64 Size, const U32 Count) : C(Count), Table(Size>>6), BitState(Count), BitState0(Count), ByteHistory(Count), Contexts(Count), Chk(Count), HasHistory(Count), m
    ask(U32(Table.size()-1)), hashbits(ilog2(mask+1)) {
       ^~~~~~~~~~~
    ./models/paq8.cpp:1237:3: note:   candidate expects 2 arguments, 0 provided
    ./models/ppmd.cpp:22: warning: "WIN32" redefined
     #define WIN32
    
    
    <built-in>: note: this is the location of the previous definition

  7. Thanks:

    suryakandau@yahoo.co.id (8th March 2020)

  8. #6
    Member
    Join Date
    Aug 2015
    Location
    indonesia
    Posts
    380
    Thanks
    57
    Thanked 75 Times in 58 Posts
    Quote Originally Posted by xinix View Post
    Doesn't work! x2

    Code:
    ./models/paq8.cpp: In constructor 'paq8::TextModel::TextModel(paq8::U32)':./models/paq8.cpp:3113:252: error: no matching function for call to 'paq8::ContextMap2::ContextMap2()'
       TextModel(const U32 Size) : Map(Size, 33), Mapxxx(Size, 10),Stemmers(Language::Count-1), Languages(Language::Count-1), WordPos(0x10000), State(Parse::Unknown), pState(State), La
    ng{ {0}, {0}, Language::Unknown, Language::Unknown }, Info{}, ParseCtx(0) {
    
    
                                                                            ^
    ./models/paq8.cpp:1237:3: note: candidate: 'paq8::ContextMap2::ContextMap2(paq8::U64, paq8::U32)'
       ContextMap2(const U64 Size, const U32 Count) : C(Count), Table(Size>>6), BitState(Count), BitState0(Count), ByteHistory(Count), Contexts(Count), Chk(Count), HasHistory(Count), m
    ask(U32(Table.size()-1)), hashbits(ilog2(mask+1)) {
       ^~~~~~~~~~~
    ./models/paq8.cpp:1237:3: note:   candidate expects 2 arguments, 0 provided
    ./models/paq8.cpp:3113:252: error: no matching function for call to 'paq8::ContextMap2::ContextMap2()'
       TextModel(const U32 Size) : Map(Size, 33), Mapxxx(Size, 10),Stemmers(Language::Count-1), Languages(Language::Count-1), WordPos(0x10000), State(Parse::Unknown), pState(State), La
    ng{ {0}, {0}, Language::Unknown, Language::Unknown }, Info{}, ParseCtx(0) {
    
    
                                                                            ^
    ./models/paq8.cpp:1237:3: note: candidate: 'paq8::ContextMap2::ContextMap2(paq8::U64, paq8::U32)'
       ContextMap2(const U64 Size, const U32 Count) : C(Count), Table(Size>>6), BitState(Count), BitState0(Count), ByteHistory(Count), Contexts(Count), Chk(Count), HasHistory(Count), m
    ask(U32(Table.size()-1)), hashbits(ilog2(mask+1)) {
       ^~~~~~~~~~~
    ./models/paq8.cpp:1237:3: note:   candidate expects 2 arguments, 0 provided
    ./models/ppmd.cpp:22: warning: "WIN32" redefined
     #define WIN32
    
    
    <built-in>: note: this is the location of the previous definition


    ​how about this ? still can't compile ??
    Attached Files Attached Files

  9. #7
    Member
    Join Date
    Feb 2015
    Location
    United Kingdom
    Posts
    176
    Thanks
    29
    Thanked 74 Times in 44 Posts
    Compile your own code before releasing it, otherwise it's clearly untested and not even worth posting. You can't just edit a few lines and say it's a new version if it doesn't compile let alone have proof that it's better than the original.

  10. Thanks:

    michael maniscalco (8th March 2020)

  11. #8
    Member
    Join Date
    Aug 2015
    Location
    indonesia
    Posts
    380
    Thanks
    57
    Thanked 75 Times in 58 Posts
    Quote Originally Posted by Lucas View Post
    Compile your own code before releasing it, otherwise it's clearly untested and not even worth posting. You can't just edit a few lines and say it's a new version if it doesn't compile let alone have proof that it's better than the original.
    From the error happens , it does not come from my code because my code start from line 3500-3590 only.

  12. #9
    Member
    Join Date
    Aug 2015
    Location
    indonesia
    Posts
    380
    Thanks
    57
    Thanked 75 Times in 58 Posts
    Quote Originally Posted by suryakandau@yahoo.co.id View Post
    ​how about this ? still can't compile ??
    @shelwien could it compiled ?? i just tune the variable.

  13. #10
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    3,982
    Thanks
    298
    Thanked 1,309 Times in 745 Posts
    There was another syntax error (missing bracket), but I fixed it.
    Code:
    <command-line>: note: this is the location of the previous definition
    ./src/models/paq8hp.cpp: In member function 'int paq8hp::APM::p(int, int, int)':
    ./src/models/paq8hp.cpp:537:37: error: expected ',' or ';' before ')' token
         int g=(y<<16)+(y<<rate)-y-(y<<4));
    Now the .exe is produced, but doesn't work.
    Code:
    >cmix_gc81.exe -c g.bat 1
    preprocessing...terminate called after throwing an instance of 'std::bad_alloc'
      what():  std::bad_alloc
    
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.

  14. #11
    Member
    Join Date
    Aug 2015
    Location
    indonesia
    Posts
    380
    Thanks
    57
    Thanked 75 Times in 58 Posts
    Quote Originally Posted by Shelwien View Post
    There was another syntax error (missing bracket), but I fixed it.
    Code:
    <command-line>: note: this is the location of the previous definition
    ./src/models/paq8hp.cpp: In member function 'int paq8hp::APM::p(int, int, int)':
    ./src/models/paq8hp.cpp:537:37: error: expected ',' or ';' before ')' token
         int g=(y<<16)+(y<<rate)-y-(y<<4));
    Now the .exe is produced, but doesn't work.
    Code:
    >cmix_gc81.exe -c g.bat 1
    preprocessing...terminate called after throwing an instance of 'std::bad_alloc'
      what():  std::bad_alloc
    
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.


    i have reduced the memory requirements and the level of paq. @shelwien could you compile it please ? thank you
    Attached Files Attached Files

Posting Permissions

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