Metasequoia BBS

| New message | Normal | Tree |
Status
Tag
Keyword
[4609] Compiling an example plugin / Nick
[Question] Response
I'm trying to compile a sample plugin project (Measure) from the SDK in an IDE other than VS and get some errors.

I fixed some by using -fpermissive switch,

another by changing,

typedef MQWidgetSharedPtr std::shared_ptr

to

#define  MQWidgetSharedPtr std::shared_ptr

but I get this error,

\MQWidget.h|140|error: incomplete type 'MQWidgetBase' used in nested name specifier

for lines like this

if(MQWidgetBase::FindWidgetByID(id) != NULL){
...}

What do I need to do to fix this error?
2014-06-25 18:14

Show the middle 1 messages.

[4615] Compiling an example plugin / Nick
OK I will try just for curiosity.

I downloaded VC++ 2010 Express via web installer but at the end of converting the mqsdk solution it reports all projects are corrupt and unloads them so I tried Code::Blocks.

Since Microsoft no longer release VS 2008 Express it took me a while to find the SP1 version (found a link in a stackoverflow topic) and now I use that and the projects compile no problem.
2014-06-26 13:48
Title
Name
Mail address for renponse notification A mail will be sent when the response is written. This address will be not shown after you post.
Tag Please select from a preset or input arbitrary comma-delimited tags.
Message

Now file attachment is not available temporarily.