I have created a static library for the following class, libtgbotengine.a and externed the class to be used in a different project. tgbotengine.h In a different project, I want to link libtgbotengine.a with the following cpp file. My goal is to not to include tgbotengine.h. Is externing myTgBotEngine help me achieve this? project2.cpp Answer The upcoming modules will probably allow
Tag: class
What is the cause of the difference in return value between Linux and Windows and how to fix it?
Here is the code that I tried to return an object of a class. but I got different results from CentOs (gcc) and visual studio 2013. In the cls.cpp, with gcc, it works well, I get the results such as detector.name = “t_name”, detector.stride = 5. but the values in the detector are “” and 0 under vs2013. It seems
Get Access violation when I run my pascal program, how to solve? (With free pascal)
This is PointClass.pas and main.pas I compile with This can pass the compiler, but when I run program, its said : I try so hard, and search a lot, but still can’t solve this problem. (Sorry for my bad English!) Answer I found it. main.pas is wrong : The correct line is :