如何在gcc搜索路径中包含文件?

时间:2021-11-20 02:06:36

I am installing pylibrabbitmq on ubuntu. But amqp.h is not in search path. It is in

我在ubuntu上安装pylibrabbitmq。但是amqp.h不在搜索路径中。它在

'/tmp/src/rabbit/rabbitmq-c/librabbitmq'.

How can I add this location to gcc search path?

如何将此位置添加到gcc搜索路径?

1 个解决方案

#1


-1  

run

sudo gcc whatever.c -I/dir/*

where ampq.h should be in the folder *

其中ampq.h应该在文件夹中*

#1


-1  

run

sudo gcc whatever.c -I/dir/*

where ampq.h should be in the folder *

其中ampq.h应该在文件夹中*