Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Unable to built pfc project (Read 3452 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Unable to built pfc project

Thank you for deleting the other two posting, unfortunately the one with the original has been deleted too 

Okay, once again :

I get this error message while compiling the PFC project with VS2k3 and the 0.7b29 SDK :

mem_block.h(189): error C2247: 'ALLOC_FAST_DONTGODOWN' not accessible because 'mem_block_t<T>' uses 'private' to inherit from 'mem_block'
        with
        [
            T=TCHAR
        ]

Unable to built pfc project

Reply #1
Get a real compiler.

mem_block.h line 189:
mem_block_fastalloc(unsigned initsize=0) {set_mem_logic(mem_block::ALLOC_FAST_DONTGODOWN);if (initsize) prealloc(initsize);}

No matter what inheritance permissions are used, mem_block::ALLOC_FAST_DONTGODOWN is public in mem_block, and it should compile; if it doesn't, then your compiler is a worthless piece of shit.
Microsoft Windows: We can't script here, this is bat country.

Unable to built pfc project

Reply #2
Quote
Get a real compiler.

I use a real compiler....the latest version of the same compiler you use for your development work. Come on, it shouldn't be too difficult to make the SDK compatible with 6.0/.NET and 2003, so please don't post such arrogant answers. If you want that other developers write components for your software you should stop with posting like that...

Unable to built pfc project

Reply #3
It's a very obvious compiler bug and I don't see any clean way to workaround it on my side (other than copying/moving the enum from mem_block declaration and possibly editing all code using it).
Microsoft Windows: We can't script here, this is bat country.

Unable to built pfc project

Reply #4
Just out of curiosity, is there a reason you're using private inheritance there, Peter?