小编b28*_*ff1的帖子

Qt创建者默认是静态还是动态链接它的库?

我正在开发一个闭源应用程序,并按照LGPL这样做,我必须动态地将Qt的库链接到我的应用程序.Qt是默认执行此操作还是必须采取措施?如果是这样的话,我该如何去做呢?

qt qt-creator

20
推荐指数
1
解决办法
9152
查看次数

为什么我必须在'using'语句之前添加额外的令牌?

Functions.h

#include <iostream>
#include <windows.h>
#include <conio.h>
#include <limits>
#include <stdexcept>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include "definitions.h"
#include "globals.h"

};using namespace std;
Run Code Online (Sandbox Code Playgroud)

这是functions.h现在我们有main.cpp包括标题

Main.cpp的

#include "functions.h"

int main(int argc, char *argv[])
{
    //Other stuff
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

出于某种原因,我必须};using声明之前写.它不会让我编译,除非它在它之前.

任何想法为什么?

c++ compilation token

1
推荐指数
1
解决办法
69
查看次数

标签 统计

c++ ×1

compilation ×1

qt ×1

qt-creator ×1

token ×1