compilation

How to wildcard include JAR files when compiling?

a 夏天 提交于 2019-12-17 09:10:11
问题 I have the following in a java file (MyRtmpClient.java): import org.apache.mina.common.ByteBuffer; and ByteBuffer is inside a JAR file (with the proper directory structure of course). That jar file and others I need are in the same directory as the .java file. Then I compile with the line: javac -cp ".;*.jar" MyRtmpClient.java But I get the error: MyRtmpClient.java:3: package org.apache.mina.common does not exist import org.apache.mina.common.ByteBuffer; How can I include jar files in my

How to wildcard include JAR files when compiling?

▼魔方 西西 提交于 2019-12-17 09:10:06
问题 I have the following in a java file (MyRtmpClient.java): import org.apache.mina.common.ByteBuffer; and ByteBuffer is inside a JAR file (with the proper directory structure of course). That jar file and others I need are in the same directory as the .java file. Then I compile with the line: javac -cp ".;*.jar" MyRtmpClient.java But I get the error: MyRtmpClient.java:3: package org.apache.mina.common does not exist import org.apache.mina.common.ByteBuffer; How can I include jar files in my

Ironpython 2.6 .py -> .exe [closed]

和自甴很熟 提交于 2019-12-17 08:50:53
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 months ago . I already attempted using py2exe (not compatible with ipy) and PYC (out of date). Can anyone point me in the direction of a good compiler? 回答1: You can use pyc.py, the Python Command-Line Compiler , which is included in IronPython since version 2.6 to compile a Python script to an executable. You find it at

Skipping Incompatible Libraries at compile

半城伤御伤魂 提交于 2019-12-17 07:17:18
问题 When I try to compile a copy of my project on my local machine, I get an error stating that it 's skipping over incompatible libraries. This isn't the case when I'm messing around with the live version hosted on the server at work [it makes perfectly there]. Various other sites have lead me to believe that this might be an environment issue, as I'm developing on a 64-bit distro of Ubuntu and I assume the server version is running on 32-bit. Nevertheless, after setting my environment variables

How can I compile and run c# program without using visual studio? [duplicate]

不羁岁月 提交于 2019-12-17 07:06:16
问题 This question already has answers here : Compiling/Executing a C# Source File in Command Prompt (13 answers) Closed 5 years ago . I am very new to C#. I have just run C# 'Hello World' program using Visual Studio. Can I run or compile a C# program without using Visual Studio? If it is possible, then which compiler should I use? Thanks 回答1: If you have .NET v4 installed (so if you have a newer windows or if you apply the windows updates) C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe

Profiling the C++ compilation process

空扰寡人 提交于 2019-12-17 07:01:50
问题 I tend to write rather large templated header-only C++ libraries and my users commonly complain about compilation times. After thinking about the matter, it occurred to me that I have no idea where the time is going . Is there some simple way to profile the C++ compilation process with common compilers, such as g++, icc, and xlC? For instance, is it possible to get an idea of how much time is spent within each of the phases of C++ compilation? 回答1: For GCC there are debugging options to find

go build works fine but go run fails

China☆狼群 提交于 2019-12-17 06:48:24
问题 I have a few files in the main package under one directory: main.go config.go server.go When I do: "go build" the program builds perfect and runs fine. When I do: "go run main.go" it fails. Output: # command-line-arguments ./main.go:7: undefined: Config ./main.go:8: undefined: Server The symbols that are undefined are structs and they are capitalised so should be exported. My Go version: go1.1.2 linux/amd64 回答1: This should work go run main.go config.go server.go Go run takes a file or files

questions about name mangling in C++

旧巷老猫 提交于 2019-12-17 06:35:27
问题 I am trying to learn and understand name mangling in C++. Here are some questions: (1) From devx When a global function is overloaded, the generated mangled name for each overloaded version is unique. Name mangling is also applied to variables. Thus, a local variable and a global variable with the same user-given name still get distinct mangled names. Are there other examples that are using name mangling, besides overloading functions and same-name global and local variables ? (2) From Wiki

How do I run Java .class files?

社会主义新天地 提交于 2019-12-17 06:33:29
问题 I've compiled a HelloWorld program, and I'm using the command prompt to run it. The .class file is named HelloWorld2.class The file is located in C:\Users\Matt\workspace\HelloWorld2\bin Here's what I'm getting when I go to command prompt, and type "Java HelloWorld2" : C:\Users\Matt>Java HelloWorld2 Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld2 Caused by: java.lang.ClassNotFoundException: HelloWorld2 at java.net.URLClassLoader$1.run(Unknown Source) at java.security

Elegantly call C++ from C

风格不统一 提交于 2019-12-17 06:27:45
问题 We develop some project in plain C (C99). But, we have one library as source codes (math library) in C++ . We need this library so I would like to ask, what is the most elegant way to integrate this source codes? Ratio between sizes of C and C++ is 20:1 so moving to C++ is not the option. Should we use static library? DLL? (It's all on Windows). 回答1: EDIT: Based on discussion in the comment, I should point out that separating things into a C-compatible struct duck and a derived class Duck is