标签: codeblocks

wxwidgets setup.h"没有这样的文件"

谷歌快速搜索这个问题表明它很常见,我不能为我的生活找到解决方案.

我直接从wxWidgets网站直接安装wxWidgets 2.8.8 for Windows.

每当我尝试编译任何东西时(例如"wxWidgets的第一个程序"中描述的示例应用程序 - http://zetcode.com/tutorials/wxwidgetstutorial/firstprograms/),我得到:

wx/setup.h:没有这样的文件或目录

我在我的编译器搜索列表中包含了C:\ wxWidgets-2.8.8\include和C:\ wxWidgets-2.8.8\include\wx.

应该很简单 - 但事实并非如此!:(

如果我尝试使用与wxWidgets集成的IDE(例如Code :: Blocks),同样的事情就会发生 - 而且,我想,这样就可以解决这个问题......

所以,请帮忙...为什么找不到setup.h?

compiler-construction wxwidgets codeblocks include

16
推荐指数
2
解决办法
3万
查看次数

如何在Code :: Blocks 12.11中指定调试器程序?

我试图通过我的程序,我从Code :: Blocks获得以下消息

Selecting target: 
Debug
ERROR: You need to specify a debugger program in the debuggers's settings.
(For MinGW compilers, it's 'gdb.exe' (without the quotes))
(For MSVC compilers, it's 'cdb.exe' (without the quotes))
Run Code Online (Sandbox Code Playgroud)

不幸的是,我无法弄清楚我在哪里输入gdb.exe.

codeblocks

16
推荐指数
4
解决办法
8万
查看次数

C++无法传递非POD类型的对象

这是我的代码:

#include <iostream>
#include <fstream>
#include <cstdlib>
#include <stdio.h>
#include <curl/curl.h>
using namespace std;
int main ()
{
    ifstream llfile;
    llfile.open("C:/log.txt");

    if(!llfile.is_open()){
        exit(EXIT_FAILURE);
    }

    string word;
    llfile >> word;
    llfile.close();
    string url = "http://example/auth.php?ll=" + word;

    CURL *curl;
    CURLcode res;

    curl = curl_easy_init();
    if(curl) {
        curl_easy_setopt(curl, CURLOPT_URL, url);
        res = curl_easy_perform(curl);

        /* always cleanup */
        curl_easy_cleanup(curl);
    }
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

编译时这是我的错误:

的main.cpp | 29 |警告:不能通过非POD的对象类型'struct std::string'通过'...'; call将在运行时中止

c++ curl codeblocks libcurl

15
推荐指数
2
解决办法
3万
查看次数

如何从外部代码和Makefile启动Codeblocks项目?

我有C++代码,它依赖于boost和其他库,因此这段代码有一个调用boost的makefile.

我现在正在尝试开始在linux中的代码块中开发此代码,所以为了做到这一点,我有两个基本问题:

(1)如何将代码作为代码块导入新项目?这似乎是一个很好的rec:http://www.programmingforums.org/thread44976.html

(2)如何使用代码块调用makefile,而不是尝试编译代码的代码块(由于代码块不知道它需要调用boost,因此会失败).

c++ unix linux compiler-construction codeblocks

15
推荐指数
2
解决办法
2万
查看次数

一个c ++程序在两个IDE中返回不同的结果

我写了下面的c++程序CodeBlocks,结果是9183.我再次写入Eclipse和运行后,它返回9220.两者都使用MinGW.正确的结果是9183.这段代码出了什么问题?谢谢.源代码:

#include <iostream>
#include <set>
#include <cmath>

int main()
{
   using namespace std;
   set<double> set_1;
   for(int a = 2; a <= 100; a++)
   {
       for(int b = 2; b <= 100; b++)
       {
           set_1.insert(pow(double(a), b));
       }
   }
    cout << set_1.size();

return 0;
}
Run Code Online (Sandbox Code Playgroud)

c++ eclipse gcc codeblocks

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

如何使用块作为'或'子句而不是简单的模具?

我想检查Net :: FTP Perl模块中的操作结果而不是死.

通常你会这样做:

$ftp->put($my_file)
  or die "Couldn't upload file";
Run Code Online (Sandbox Code Playgroud)

但是我想做其他事情,而不是仅仅死在这个脚本中,所以我尝试了:

$ftp->put($my_file)
  or {
      log("Couldn't upload $my_file");
      return(-1);
  }

log("$my_file uploaded");
Run Code Online (Sandbox Code Playgroud)

但是Perl抱怨编译错误说:

syntax error at toto.pl line nnn, near "log"
Run Code Online (Sandbox Code Playgroud)

这是我的代码片段中的第二个日志.

任何建议都非常感谢.

干杯,

syntax perl codeblocks

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

如果没有大括号的代码块,C#是否支持?

C#如何编译?

if (info == 8)
    info = 4;
otherStuff();
Run Code Online (Sandbox Code Playgroud)

它会包含代码块中的后续行吗?

if (info == 8)
{
    info = 4;
    otherStuff();
}
Run Code Online (Sandbox Code Playgroud)

或者它只需要下一行?

if (info == 8)
{
    info = 4;
}
otherStuff();
Run Code Online (Sandbox Code Playgroud)

c# compilation codeblocks conditional-statements

14
推荐指数
2
解决办法
9919
查看次数

更改Code :: Blocks中的IDE快捷方式

我想在Code :: Blocks中更改Build,Debug&Run快捷键.有没有人知道更改密钥的插件或设置?

keyboard-shortcuts codeblocks

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

是否可以使用现有的Makefile在Code :: Blocks中构建项目?

编辑:我发现Project属性中有一个选项可以设置自定义make文件.现在项目建设很好.现在,我偶然发现当我点击"运行"时如何指定要运行的目标可执行文件.

c++ makefile codeblocks

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

如何在代码块中缩进我的代码?

什么是最好的代码块快捷方式?还有一些方法可以直接缩进我们的所有代码吗?另外,我们如何在代码块中移动活动选项卡?

codeblocks

13
推荐指数
3
解决办法
5万
查看次数