我已经安装和配置了我的curl库,并通过CodeBlocks将其链接到CodeBlocks。一切都很顺利,但是当我构建代码时,我得到了一个错误:
CURL_STATICLIB No such file or directory
下面是错误的屏幕截图:
我在# defined:中定义了
这里还有一个构建日志:
-------------- Build: Debug in CurlTest (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -fexceptions -g CURL_STATICLIB
我对“强大”的定义是自定义能力。
我熟悉gcc,我想试试MSVC。所以,我在msvc中寻找gcc的等价物。我找不到很多。
控制型输出
Stop after the preprocessing stage; do not run the compiler proper.
gcc: -E
msvc: ???
Stop after the stage of compilation proper; do not assemble.
gcc: -S
msvc: ???
Compile or assemble the source files, but do not link.
gcc: -c
msv
为了研究UEFI问题,我遵循了一个教程:当我尝试编译时,我得到了这个我不明白的
ERROR:`hello.c: In function ‘efi_main’:
hello.c:8:10: warning: passing argument 1 of ‘Print’ from incompatible pointer type [-Wincompatible-pointer-types]
Print(L"Hi,,,");
^~~~~~~~
In file included from hello.c:2:0:
/usr/local/include/efi
我想检查一下正在调查的库是用什么标志和选项构建的?
我正在尝试使用带有-frecord-gcc-switches选项的gcc编译器来理解我的简单共享库,但没有成功。
下面是形成共享库的一段代码:
#include "shared.h"
unsigned int add(unsigned int a, unsigned int b)
{
printf("\n Inside add()\n");
return (a+b);
}
shared.h看起来像这样:
#include<stdio.h>
extern unsigned int ad