score:1
you're expected to link *.lib
files, not *.dll
(dynamic-link library).
so, that should be :
g++ -i"c:\opencv\build\include" -l"lib" main.c -lws2_32 -lopencv_core244.lib -lopencv_highgui244.lib -lopencv_imgproc244.lib -o bcast.exe
(you should consider using g++ for this, it's a c++ library.) after that your makefile will produce 1 .exe
file, no libs.
honestly, did you really recompile the opencv libs statically (with -dbuild_shared_libs=off
)? i'm having doubts here.
Source: stackoverflow.com
Related Query
- Create one exe file with buil-in static libraries
- Howto create a RCP or plugin with the visual editor instead of the default one similar to the genmodel file
- How to create a jar with external libraries included in Eclipse?
- Unable to create a file with foreign language characters
- How can I create a self-consistent .jar file with Eclipse?
- How to compare a file in a project with one in the filesystem in eclipse?
- create jar with custom manifest with multiple libraries in classpath
- Create a subset of a Java Eclipse project based on dependencies of one source file
- Going from a bunch of .Java files to a .Jar file from the commandline with one simple command
- How to create a Java SWT table with multiple columns without giving static column width
- How to create a css file in eclipse with e(fx)clipse plug in
- Unzip one file with libzip
- Eclipse: including libraries with war file project
- How can i export a jar file with libraries in eclipse? (Not executable jar)
- How can I create a runnable JAR file with Maven + JavaFX
- jar file with all the dependeny libraries unpacked
- Why does my eclipse IDE run without compiler error when I create a non static inner class with static methods and variables?
- Taking data from one array to create another. What's wrong with this loop?
- Create build.xml file independant of the location of the libraries on a computer
- Is it possible to create Eclipse.Desktop file of already installed Eclipse with ADT in ubuntu?
- I want java to create a new file with ...new PrintStream... it all works fine, but I can't find the file in my project
- How can one create a org.eclipse.jface.preference.BooleanFieldEditor with a multi-line label?
- Polish characters encoding with UTF-8 doesn't work only in one JSP file
- Cannot create a cpp project with a static lib in eclipse helios
- How to create Jar file from android library project with resources?
- How to create a runnable jar file with AspectJ?
- Generate jar file with libraries WITHOUT runnable jar file in Eclipse
- How to create a file with different extension using org.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard
- linking problems with glfw static libraries
- How to create a JAR file with all classes and byte code in intelliJ or eclipse?
More Query from same tag
- Restart static resources every spring boot restart
- Where to put static files for Spark Web Framework?
- How to regenerate .apt_generated folder
- Debug android app when it starts on device
- get Access Token from Azure AD Java
- Error converting from ArrayList to double[]?
- Tomcat: Generated context-path is different for cloned application in Eclipse Juno
- slowness when debugging the Grails
- Android Virtual Device do not respond
- Catching exceptions with Log4j
- Demandware server eclipse
- How to reset Available Software Sites to factory defaults in Eclipse Luna?
- Running Code with Packages created in Eclipse in Console
- Create Jar file which references another jar
- visibleWhen with if else condition in eclipse menu
- how draw in realtime to tableLayout - in android with eclipse
- Unable to Set Up ActionBarSherlock Library
- how to stop eclipse breaking at every caught exception when running in debug
- How to auto-start/eager start OSGi services on Eclipse platform
- What do these outline symbols in the pydev eclipse editor mean?
- Rifidi Emulator 1.6 is not working
- unnoticeable lesscss compiler in eclipse pdt
- Where is Willdfly 8.1 runtime in Eclipse?
- Put results of Android Wifi Scan into parsed array
- How to keep the code style and reformat consistent between idea and STS?
- Problems keeping Git history after migrating from Eclipse to Android Studio
- Getting incomplete messages when trying to read from Arduino with eclipse?
- Different look of application in android?
- Does CDT test runner work with Eclipse Neon.3 and Google Test
- In eclipse, this reference is automatically getting deleted on save. How do i change the settings?