forked from hankchan/goctp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibgoctp.go
More file actions
15 lines (12 loc) · 1012 Bytes
/
libgoctp.go
File metadata and controls
15 lines (12 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// +build linux,cgo windows,cgo
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package goctp
/*
#cgo linux LDFLAGS: -fPIC -L${SRCDIR}/api/linux64 -Wl,-rpath,${SRCDIR}/api/linux64 -lLinuxDataCollect -lthostmduserapi_se -lthosttraderapi_se -lstdc++
#cgo linux CPPFLAGS: -fPIC -I${SRCDIR}/api/linux64
#cgo windows LDFLAGS: -fPIC -L${SRCDIR}/api/SFIT_CTP_6.3.11_20180109_tradeapi/20180109_tradeapi64_windows -Wl,-rpath,${SRCDIR}/api/SFIT_CTP_6.3.11_20180109_tradeapi/20180109_tradeapi64_windows ${SRCDIR}/api/SFIT_CTP_6.3.11_20180109_tradeapi/20180109_tradeapi64_windows/thostmduserapi.lib ${SRCDIR}/api/SFIT_CTP_6.3.11_20180109_tradeapi/20180109_tradeapi64_windows/thosttraderapi.lib -lthostmduserapi -lthosttraderapi
#cgo windows CPPFLAGS: -fPIC -I${SRCDIR}/api/SFIT_CTP_6.3.11_20180109_tradeapi/20180109_tradeapi64_windows -DISLIB -DWIN32 -DLIB_MD_API_EXPORT -DLIB_TRADER_API_EXPORT
*/
import "C"