Fixed linking order.

This commit is contained in:
Takatoshi Kondo 2014-06-01 19:03:51 +00:00
parent 1dac3f890a
commit 17b0753023
3 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ You can build using command line as follows:
Include `msgpack.hpp` (or `msgpack.h` for C) in your application and link with libmsgpack. Here is a typical gcc link command:
g++ -lmsgpack myapp.c -o myapp
g++ myapp.cpp -lmsgpack -o myapp
### Code Example

View File

@ -22,7 +22,7 @@ as comparing that implementations.
or
$ port install msgpack # MacPorts
$ g++ -Wall -lmsgpack crosslang.cc -o crosslang
$ g++ -Wall crosslang.cc -lmsgpack -o crosslang
$ ./crosslang
Usage: ./crosslang [in-file] [out-file]

View File

@ -5,7 +5,7 @@
// or
// $ port install msgpack # MacPorts
//
// $ g++ -Wall -lmsgpack crosslang.cc
// $ g++ -Wall crosslang.cc -lmsgpack
//
#include <msgpack.hpp>
#include <iostream>