Viz Studio 2013 error when include MicrostationAPI.h

Hello,


After one full evening of research, I decided to post my nooby problem here. Basically, I just want to start a microstation project in Viz Studio 2013.

I had both include Microstation :

MicroStation\mdl\include
MicroStation\mdl\MicroStationAPI


Into the main file, I added

#define winNT
#include <MicroStation.API>
BEGIN_BENTLEY_NAMESPACE

That's all, but compiler returns me many error (14), these are the 4 firsts :

Error    1    error C2146: syntax error : missing ';' before identifier 'size_type'    c:\users\tom\bentley\microstation\mdl\include\memutilallocator.h    42    1    MdlTEST
Error    2    error C4430: missing type specifier - int assumed. Note: C++ does not support default-int    c:\users\tom\bentley\microstation\mdl\include\memutilallocator.h    42    1    MdlTEST
Error    3    error C2146: syntax error : missing ';' before identifier 'difference_type'    c:\users\tom\bentley\microstation\mdl\include\memutilallocator.h    43    1    MdlTEST
Error    4    error C4430: missing type specifier - int assumed. Note: C++ does not support default-int    c:\users\tom\bentley\microstation\mdl\include\memutilallocator.h    43    1    MdlTEST

Anyway, I cannot do anything, it's always wrong somewhere into these files.

Of course I checked all http://www.la-solutions.co.uk/content/Publications-MDL.htm#ArticleIndexDevTools, thanks Jon, but I couldn't find a solution.

Could you see what's wrong ??

Thank you and have a nice day

Tom

Parents Reply
  • Unknown said:
    "unresolved external symbol _mdlSystem_newDesignFile" error, it's probably a lib file missing or something ?

    Learn to distinguish between compiler errors and linker errors (collectively build errors).  The Viz C++ error code will tell you: compiler errors are a 4-digit number prefixed 'C' and linker errors are a 4-digit number prefixed 'L'.

    unresolved external symbol is a linker error.  The C++ linker was unable to find the definition of that function.  You probably need to add several MDL .lib files to the linker input.

    In Viz Studio, use the project properties dialog...

    If building with bmake, then specify the library files with the DLM_LIBRARY_FILES macro like this...

    DLM_LIBRARY_FILES     =    $(mdlLibs)BentleyDgn.lib    \
                            $(mdlLibs)toolsubs.lib        \
                            $(mdlLibs)mdlbltin.lib         \
                            $(mdlLibs)rasterlib.lib        \
                            $(mdlLibs)stdutillib.lib    \
                            $(mdlLibs)mdllib.lib        \
                            Shlwapi.lib

     
    Regards, Jon Summers
    LA Solutions

Children