}
georgeringo/ringo.hpp
#ifndef RINGO_HPP_INCLUDED
#define RINGO_HPP_INCLUDED
void ringo(); // Печатает "and Ringo\n"
#endif // RINGO_HPP_INCLUDED
georgeringo/ringo.cpp
#include <iostream>
#include "ringo.hpp"
void ringo() {
std::cout << "and Ringo\n";
}
georgeringo/georgeringo.hpp
#ifndef GEORGERINGO_HPP_INCLUDED
#define GEORGERINGO_HPP_INCLUDED
// определите GEORGERINGO_DLL при сборке libgeorgeringo.dll
#if defined(_WIN32) && !defined(__GNUC__)
#ifdef GEORGERINGO_DLL
# define GEORGERINGO_DECL __declspec(dllexport)
#else
# define GEORGERINGO_DECL __declspec(dllimport)
#endif
#endif // WIN32
#ifndef GEORGERINGO_DECL
# define GEORGERINGO_DECL
#endif
// Печатает "George, and Ringo\n"
#ifdef __MWERKS__
# pragma export on
#endif