message.hpp #include <map>

13 views
Skip to first unread message

Milan

unread,
Oct 25, 2025, 9:09:19 PMOct 25
to fix8 support
Hi folks, hope everyone is well.

I am hitting a wall with Fix8 CE, and I want to overcome it.
I am writing a small open-source CLI trading app, here:
The app was built with QuickFIX, and I am really excited to switch it to Fix8.
I'm pretty new to c++ though (and dependency management in particular).

I installed Fix8 successfully on my Ubuntu 20.04 WSL2 VM, like so:
```
git clone g...@github.com:fix8/fix8.git
./bootstrap
./configure --prefix=/usr/local
make
sudo make install
```

I ran f8c, and compiled classes successfully - they are available in ./third_party/fix8/.
The app uses Conan2 as a package manager, so I installed POCO using Conan (conanfile.txt).
After and adding the  ./src/f8/session.h and  ./src/f8/session.cpp files, compilation errors are observed (in the attached txt file).

On it's face the problem seems like a missing include:
> /usr/local/include/fix8/message.hpp:41:1: note: ‘std::map’ is defined in header ‘<map>’; did you forget to ‘#include <map>’?

Searching through the support group, this thread seems relevant:
https://groups.google.com/g/fix8-support/c/l05p2BwVJcM/m/gZxE8ePGBQAJ

In my CMakePresets.json file, I call:
"CMAKE_MODULE_PATH": "/usr/local/share/fix8/contrib"

And then in CMakeLists.txt, I call:
find_package(Fix8 REQUIRED)
target_include_directories(traderlib SYSTEM PUBLIC ${FIX8_INCLUDE_DIRS})
target_link_libraries(traderlib PUBLIC ${FIX8_LIBRARIES})

I guess this is to do with how i import code but I don't know to go move forward.
Any advice, folks?
I'm looking forward to getting fix8 going!
Thx
Milan

fix8-app-compile-error.txt

dakka

unread,
Oct 26, 2025, 7:43:12 PMOct 26
to fix8 support
Please use the 'dev' branch. Follow the instructions on the github page. This builds for all platforms.
/dakka

Reply all
Reply to author
Forward
0 new messages