Hi Everyone,
I am new to mdl programming. I have Microstations v8i select series 4 and I have downloaded the v8i SDK.
I first want to compile and create a simple mc source file to a ma file and then try to execute it as a test.
The program is that when I attempt this we bmake, I am getting an error that I can not determine the cause.
here is the source file:
#include <mdl.h>#include <dlogitem.h>
int main(){mdlDialog_openInfoBox(“Hello World!!”);return 0;}
I open the MicroStation Developer Shell and type the following:
C:\PROGRA~2\Bentley\MICROS~1\MICROS~1>bmake c:\hastus\hw.mcBentley Systems Make Utility. Version 08.11.09.04, Feb 10 2014Thu Mar 11 10:51:48 2021c:\hastus\hw.mc(4) : error : not rule or dependencyBMAKE: call trace line: 4, c:\hastus\hw.mc
Line 4 in the source is int main(). What is wrong with this line?
Just a note, I have not installed VS 2005. I'm not sure if I need to for what I am doing.
Could someone help me with what I am doing wrong?
Also not that this is on Windows 10, if that matters.
Brenden OReilly said:I am new to mdl programming
Whether you write an app using obsolete MDL, or preferably C# or C++, the build process is controlled by a make file. A make file contains a set of rules. Each rule instructs a tool to do something. For example, there is a rule to compile a source file (e.g. MyApp.cpp) to an object file (e.g. MyApp.obj). A make file probably has multiple rules, each corresponding to a source file in your project.
MyApp.cpp
MyApp.obj
In the context of MicroStation, a make file has a .mke extension. Invoke the bmake (bmake.exe) tool provided by the MicroStation SDK to parse your project's make file. bmake understands both implementation (e.g. source code) files and resource (e.g. dialogs, messages) files. That is, it knows how to build object files from C++ source code and how to build resource binary (*.rsc) files from resource (*.r) files.
.mke
bmake.exe
*.rsc
*.r
You have installed the MicroStation SDK. Examine the projects in the examples folder. Each project has a bmake file that controls the build process. Model your project on those examples.
The simplest syntax to invoke bmake in the SDK shell is...
bmake MyApp.mke
I suggest that you build some of the example projects.
Regards, Jon Summers LA Solutions
Thank you. I will consult the documentation.