Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

Using enum in include file gives ERR Name conflict [] is a named type

$
0
0

< SOLVED >

My host program searches the script directory for any scripts, and automatically includes them as a module.

The enum.h is in the same directory as the script - and the script is also #including it.  So it's getting compiled automatically, and also being included in the main script file.

Remove the #include from the main script and it works.

 

 

Hi

I'm using a shared file which has all the enum values between the host and script file.

When compiling the script I get the following:

enum.h (2, 7) : ERR  : Name conflict. 'PARA_EVENT_TYPES …

Viewing all articles
Browse latest Browse all 17560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>