Comments (7)
Like I said, that's a problem with your native library, not JavaCPP. You'll need to fix your library and export that function.
from javacpp.
Update: I'm beyond confused as to what caused this, but somehow mingw64 was using the x86 MSVC compiler, not the x64 version, which is what my library was compiled with. After I started a fresh instance and verified that running "cl" was showing x64 everything built correctly, no skip() needed.
from javacpp.
That just means that function isn't defined and/or exported. You can simply skip those because they are typically not meant for end users.
from javacpp.
Feeling silly for skipping over the skip function. Built with no issues. Thank you!
from javacpp.
Upon further review, I think skip() may not be what I need here. I assumed it would skip the processing of the extended namespace version of the function and pay attention to only the version in the header. I need to explicitly call the function where I've implemented the library. Is there a way to tell the parser/builder to be aware of the namespace difference?
from javacpp.
The sample code above only has one function. If you have multiple functions and something isn't working for some reason, please provide an example of that. I can't fix what isn't broken!
from javacpp.
Sorry for the confusion. I need to call libname_function() but skipping it using infoMap.put(new Info("LIBNAME::LibnameCppWrapper::libname_function").skip()) causes it not to be in the generated class. I'm looking to circumvent the unresolved external symbol error without skipping the function wrapping entirely.
from javacpp.
Related Issues (20)
- Mapping Template Constraints, Parser Error HOT 5
- Parser cannot compile because of QT HOT 4
- Template class with template functions HOT 15
- Inadequate Error Handling HOT 1
- `@StdVector` default annotation causing `Parser` to ignore templated constructors and operator overloads with `std::vector` arguments HOT 10
- Crash when passing a unique_ptr by value HOT 12
- Potential class loading deadlock when call static methods of Loader or Pointer HOT 13
- Multiple pointer types and automatic generation of function overloads HOT 1
- Parser doesn't add @Virtual annotations HOT 2
- A question about garbage collection on native objects HOT 3
- Pointer types don't work on the native side if allocated in java HOT 16
- Missing dependencies reported by gradle HOT 1
- Not found libs based on x86 in 1.5.10 HOT 4
- Marking an interface with virtualize() causes compilation failure when returning byte array
- Panama HOT 1
- Class instance state is reset between calls HOT 5
- Duplicate Constructor and allocate HOT 4
- Question related to std::function HOT 7
- Skip #include from a header file HOT 2
- java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because "allInherited" is null HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javacpp.