[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: [Cmake] Error when using libraries generated with CMake-output projects
From: "Asad A. Abu-Tarif" <tarifa () rpi ! edu>
Date: 2001-12-04 4:28:50
Message-ID: 002f01c17c7c$2c9d2690$30777180 () aisl ! rpi ! edu
[Download RAW message or body]
Hi,
I started using CMake to generate libraries from a registration package
that I'm working on.
I used to build the libraries using VC++ by creating a new project from
the VC++. What I have done, I created the CMakeLists.txt and used
CMake to generate the projects.
The project are created fine and the program compiles and the libraries
generated (namely, I generate 6 libraries).
However, whenever I try to use the libraries generated in an MFC
application, the application compilation (linking) fails complaining that
it can't find an entry point?
If I use the libraries generated from the projects that was created directly
from VC++, the application links and runs fine??
Did anyone face this problem before??
The only guess I have is the DllMain function. In all the library projects
created
using VC++, the Dev. environment automatically generates a .cpp file with
the function DllMain that serves as a starting point when the LoadLibrary
or FreeLibrary processes are called. However, This is not done in the
projects generated by CMake.
Do I need to create the DllMain function manually? Is there another solution
for this problem?
Thank you very much for any help!!
Regards,
Asad
__________________________________________________
/ Asad A. Abu-Tarif
\
| Computer Engineering.
|
| PhD Candidate, Rensselaer Polytechnic Institute (RPI). |
| tarifa@rpi.edu
|
\___________________________________________________/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic