compilation

Cannot call member function without object = C++

╄→гoц情女王★ 提交于 2019-12-03 11:41:05
I am brushing up again and I am getting an error: Cannot call member function without object. I am calling like: FxString text = table.GetEntry(obj->GetAlertTextID()); FxUChar outDescription1[ kCP_DEFAULT_STRING_LENGTH ]; IC_Utility::CP_StringToPString(text, &outDescription1[0] ); The line: IC_Utility::CP_StringToPString(text, &outDescription1[0] ); is getting the error My function is: void IC_Utility::CP_StringToPString( FxString& inString, FxUChar *outString) { } I know it has to be something simple I am missing. If you've written the CP_StringToPString function, you need to declare it

How to compile a basic D-Bus/glib example?

落花浮王杯 提交于 2019-12-03 11:33:14
问题 I'm trying to learn how to use D-Bus with C bindings. I've never used D-Bus before. I'm following this tutorial, which I assume is the official one (Freedesktop.org). I've read it until this paragraph that gives a first sample program , but unfortunately I don't see any indication on this page about how to compile it or which libraries to include. Did I miss something ? My OS is Ubuntu 10.04 32bit. I installed the libdbus-glib-1-dev package. I tried to add #include <dbus/dbus.h> at the

To see all command line on output window while compiling

允我心安 提交于 2019-12-03 11:18:14
I want to see all commands while building/releasing on the output window. When I build my app I only see this: ------ Build started: Project: CemKutuphane, Configuration: Debug Any CPU ------ CemKutuphane -> D:\Projects\Test\CemKutuphane\CemKutuphane\bin\Debug\CemKutuphane.dll ========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ========== There is no csc.exe args in these lines. But visual studio ide is running behind of this. Is there any way to see the all commands? dknaack's answer is correct so I'll repeat it in its entirity until he un-deletes it: You can set the verbosity

.NET property generating “must declare a body because it is not marked abstract or extern” compilation error

安稳与你 提交于 2019-12-03 11:09:28
I have a .NET 3.5 (target framework) web application. I have some code that looks like this: public string LogPath { get; private set; } public string ErrorMsg { get; private set; } It's giving me this compilation error for these lines: "must declare a body because it is not marked abstract or extern." Any ideas? My understanding was that this style of property was valid as of .NET 3.0. Thanks! The problem turned out to be in my .sln file itself. Although I was changing the target version in my build options, in the .sln file, I found this: TargetFramework = "3.0" Changing that to "3.5" solved

Building boost under msys, can't find mingw.jam

做~自己de王妃 提交于 2019-12-03 11:05:16
I need to build boost to use the regex library. I was able to creat bjam using bootstrap.sh like so: ./bootstrap.sh --with-toolset=mingw Note - if I leave out the --with-toolset=mingw argument compilation fails - bootstrap can't find wait.h, resource.h, ar.h. With the mingw toolset argument, bjam is able to compile. Then I run bjam and get: ./bjam.exe mingw.jam: No such file or directory e:/libraries/boost_1_45_0/tools/build/v2/build\toolset.jam:38: in toolset.using rule mingw.init unknown in module toolset. e:/libraries/boost_1_45_0/tools/build/v2/build\project.jam:881: in using project

Compile PHP into Static Binary

我的未来我决定 提交于 2019-12-03 10:44:18
I need to run a php script on a system with a somewhat broken PHP install. Rather than trying to workaround the issues I want to just package my code with it's own PHP binary (I can execute an executable). I want to just have a simple php binary that has all the modules I need compiled in. My general process is: ./configure --enable-static --enable-cli --disable-all This gives me a php binary with no extensions. From here I can add the extensions I need. For example to add curl and json support ./configure --enable-static --enable-cli --disable-all --with-curl --enable-json This seems to work

LLVM and compiler nomenclature

断了今生、忘了曾经 提交于 2019-12-03 10:42:57
I am looking into the LLVM system and I have read through the Getting Started documentation . However, some of the nomenclature (and the wording in the clang example) is still a little confusing. The following terms and commands are all part of the compilation process, and I was wondering if someone might be able to explain them a little better for me: clang -S vs. clang -c (I know what -c does, but how do the results differ?) * (Edit) LLVM Bitcode vs. LLVM IR (what is the difference?) .ll files vs. .bc files (what are they, how do they differ?) LLVM assembly code vs. native assembly code (is

libtool error building thrift 0.9.1 on Ubuntu 13.04

坚强是说给别人听的谎言 提交于 2019-12-03 10:18:17
Building thrift 0.9.1 (support C, C++, java, C#, perl, python) on Ubuntu 13.04 I am getting this error. ./configure run without any options, make run without any options... Making all in test make[2]: Entering directory `/home/dvb/sw/thrift-0.9.1/test' Making all in nodejs make[3]: Entering directory `/home/dvb/sw/thrift-0.9.1/test/nodejs' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/dvb/sw/thrift-0.9.1/test/nodejs' Making all in cpp make[3]: Entering directory `/home/dvb/sw/thrift-0.9.1/test/cpp' Makefile:832: warning: overriding commands for target `gen-cpp

Eclipse won't compile/run java file

落爺英雄遲暮 提交于 2019-12-03 09:57:33
I am just trying to compile and run a simple java program. When I go to run my tester class it says select what to run and it gives me Ant Build which when highlighted says "Launches an Ant build with default settings" or Ant Build... that says "Launches an Ant build and allows it to be configured". When I try to select either of these it prompts Build failed. Reason: Unable to find ant file to run. I honestly don't know what these ant builds and files are. This is definitely a dumb question but have no idea what to do. Make a project to put the files in. File -> New -> Java Project Make note

Golang - Difference between “go run main.go” and compilation

馋奶兔 提交于 2019-12-03 09:43:35
After writing some scripts in Go I asked myself if there is any difference between the compilation of a .go -file and the later execution and the go run FILE.go command in terms of performence etc. Are there any advantages if I start a webservice with one of these methods? go run is just a shortcut for compiling then running in a single step. While it is useful for development you should generally build it and run the binary directly when using it in production. 'go install' command will create shared library compiled file as package.a under pkg folder and exec file under bin directory. go run