#include "test_so1.h"
int test(void)
{
printf("USING TEST_SO1.SO NOW!\n");//注意此处与test_so2.cpp中的
//test函数的不同
return 1;
}
//////////////////////////////// test_so2.h//////////////////////////////////////////////////////
#include
#include
extern "C" {
int test(void);
}
////////////////////////////////ttest_so2.cpp//////////////////////////////////////////////////////
#include "test_so2.h"
int test(void)
{
printf("USING TEST_SO2.SO NOW!\n");//注意此处与test_so1.cpp中的
//test函数的不同
return 1;
}
////////////////////////////////test_dl.cpp//////////////////////////////////////////////////////
#include
#include
#include
int main(int argc, char **argv)
{
if(argc!=2)
{
you can decode the error code with a tool like err.exe. in this example, the error code maps to error_winhttp_timeout. you can also find this information in the iis logs for the associated website on the arr controller. the following is an excerpt from the iis log entry for the 502.3 error, with most of the fields trimmed for readability:。
fraps will show a maximum framerate of 9999 fps on screen. if you need to know precise framerates above this you must use benchmarking and find out the value from frapslog.txt, or from the detailed statistics (if you have this option enabled).。
you must enter like this:。
hey, you can’t go to the classroom like this. you should ask me “excuse me,miss, may i sit down。
printf("./test_dl test_so1.so\n");
exit(1);
}
void *handle;
char *error;
typedef void (*pf_t)();//声明函数指针类型
handle = dlopen (argv[1],RTLD_NOW);//打开argv[1]指定的动态库
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-90978-4.html
我若动手
这个经济学家是个畜生