Plugin

Forum for plugin, effect and behavior programmers. Please use the Help & Support forum for help using Construct.

Post » Thu Jan 01, 2009 3:49 am

So, I was doing this tutorial on the wiki on making plugins..
And I somehow familiarized myself with ti..
However
I get this error after I finished up..

Compiling...
StdAfx.cpp
c:\program files\scirra\common\internal.hpp(26) : error C2143: syntax error : missing ';' before 'constant'
c:\program files\scirra\common\internal.hpp(255) : error C2143: syntax error : missing ';' before 'constant'
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 9.00.21022
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '.\Debug\ConstructSDK.sbr': No such file or directory
B
16
S
10
G
5
Posts: 255
Reputation: 3,934

Post » Thu Jan 01, 2009 6:31 am

Internal.hpp(26):
return IDE_FLAGS;
Internal.hpp(255):
objectInfo->ideFlags = IDE_FLAGS;

Problem is about IDE_FLAGS from main.h:

If you don't want any set, then you can do it like this:
[code:1m25yr8l]#define IDE_FLAGS 0[/code:1m25yr8l]

You can't do it like this:
[code:1m25yr8l]#define IDE_FLAGS[/code:1m25yr8l]
Nor deleting this line is allowed.
B
6
S
3
G
6
Posts: 219
Reputation: 3,013

Post » Thu Jan 01, 2009 11:22 am

I have set flags.. the line looks like:
[code:1327llhb]
#define IDE_FLAGS OF_NOCOMMONDEBUG OF_NODRAW

[/code:1327llhb]
B
16
S
10
G
5
Posts: 255
Reputation: 3,934

Post » Thu Jan 01, 2009 11:26 am

You have to have a | inbetween your flags, eg:

#define IDE_FLAGS OF_NOCOMMONDEBUG | OF_NODRAW
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529


Return to Construct engineering

Who is online

Users browsing this forum: No registered users and 0 guests