mobility: Export Mobility model for MSVC compatibility

This commit is contained in:
Gabriel Ferreira
2025-05-20 22:42:00 +02:00
committed by Jared Ivey
parent f702b9cb62
commit f6efd47de6
2 changed files with 3 additions and 1 deletions

View File

@@ -57,4 +57,5 @@ build_lib(
test/rectangle-closest-border-test.cc
test/steady-state-random-waypoint-mobility-model-test.cc
test/waypoint-mobility-model-test.cc
GENERATE_EXPORT_HEADER
)

View File

@@ -8,6 +8,7 @@
#ifndef MOBILITY_MODEL_H
#define MOBILITY_MODEL_H
#include "ns3/mobility-export.h"
#include "ns3/object.h"
#include "ns3/traced-callback.h"
#include "ns3/vector.h"
@@ -25,7 +26,7 @@ namespace ns3
*
* This is a base class for all specific mobility models.
*/
class MobilityModel : public Object
class MOBILITY_EXPORT MobilityModel : public Object
{
public:
/**