我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

链接标志中可以有多行吗?

I'm linking to a couple dozens libraries with cgo.

Can I do something like:

// #cgo LDFLAGS: -L${SRCDIR}/lib  \
// -lmylib1 \
// -lmylib2 \
// ...

Or maybe

// #cgo LDFLAGS: -L${SRCDIR}/lib
// #cgo LDFLAGS += -lmylib1
// #cgo LDFLAGS += -lmylib2
// ...

So is there something along those lines? Because it would be very ugly and hard to read to have all of my linking flags at one line.

近期文章

  • 用kafka读取__consumer_offsets
  • 在Golang中访问for循环之外的变量
  • 与用于Armhf-v7的GitlabCI交叉编译golang应用程序时出现“执行格式错误”
  • 我如何获得docker build登录下载进度标准输出
  • 使用sqlToCsv包的已编码CSV无法与非ASCII字符一起使用
  • 在gocv中是否有类似python中的np.where()的类似功能?
  • 如何从应用程序(客户端)ID和目录(租户)ID获取对象ID?
  • 无法弄清楚如何格式化循环打印输出的值
  • 使用github.com/jarcoal/httpmock验证请求正文
  • 进行YAML解析:必填字段
  • 建立SQL查询以从map [string] interface {}添加新的列和值
  • 获取gorm中的行数
  • Sqlboiler仅获取所需的列
  • HTML到文本,例如Python的BeautifulSoup
  • 在Golang中无法将输入表单数据作为变量
  • 为什么我的Users / myname / go文件夹不存在?
  • mongo-go-driver中的自定义UnmarshalBSON
  • SQLBoiler从`AndIn`中的另一个表中选择
  • 如何在2D游戏中全屏处理?
  • 如何在Golang中的struct中定义多种数据类型? [重复]

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华