Discussion:
[omniORB] How to include omnithread in my application?
Ashish Bhatt
2007-11-01 09:00:38 UTC
Permalink
Hi All,:-)
I am using VC++ win32 application in VS 2005.I have created one project as
win32 and now I want to add one another project which is omnithread into
same solution.I want to make it as static library.

How can I use omnithread.h,nt.h and nt.cpp files in this project.And what my
project settings I have to change?Please suggest me.I tried this by reading
the REadme.Win32 but I did not get success.

I will appretiate your answer.

Thanks in Advance
--
View this message in context: http://www.nabble.com/How-to-include-omnithread-in-my-application--tf4729329.html#a13523237
Sent from the OmniORB - User mailing list archive at Nabble.com.
Stefan Naewe
2007-11-01 12:37:27 UTC
Permalink
Post by Ashish Bhatt
Hi All,:-)
I am using VC++ win32 application in VS 2005.I have created one project as
win32 and now I want to add one another project which is omnithread into
same solution.I want to make it as static library.
How can I use omnithread.h,nt.h and nt.cpp files in this project.And what my
project settings I have to change?Please suggest me.I tried this by reading
the REadme.Win32 but I did not get success.
I will appretiate your answer.
Thanks in Advance
"Read The Friendly Manual" on how to set the required compiler #defines
for you platform (a look in the file omnithread.h will give you some
hints, too).


S.
--
----------------------------------------------------------------
Dipl.-Inform. Stefan N?we
Abt.: NUS T4
Tel.: 1378
----------------------------------------------------------------
/dev/random says: The best substitute for experience is being sixteen.
Ashish Bhatt
2007-11-01 12:56:25 UTC
Permalink
Thanks For reply,,

As you told to read the manual but I have already read it and I have done
all things which all were mentained in that manual but still I am getting
the same problem.

Is there any other solution or suggetion.Is tere any other setting which I
am missing.

Thanks.
Post by Stefan Naewe
Post by Ashish Bhatt
Hi All,:-)
I am using VC++ win32 application in VS 2005.I have created one project as
win32 and now I want to add one another project which is omnithread into
same solution.I want to make it as static library.
How can I use omnithread.h,nt.h and nt.cpp files in this project.And what my
project settings I have to change?Please suggest me.I tried this by reading
the REadme.Win32 but I did not get success.
I will appretiate your answer.
Thanks in Advance
"Read The Friendly Manual" on how to set the required compiler #defines
for you platform (a look in the file omnithread.h will give you some
hints, too).
S.
--
----------------------------------------------------------------
Dipl.-Inform. Stefan N?we
Abt.: NUS T4
Tel.: 1378
----------------------------------------------------------------
/dev/random says: The best substitute for experience is being sixteen.
_______________________________________________
omniORB-list mailing list
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
--
View this message in context: http://www.nabble.com/How-to-include-omnithread-in-my-application--tf4729329.html#a13524651
Sent from the OmniORB - User mailing list archive at Nabble.com.
Stefan Naewe
2007-11-01 13:02:50 UTC
Permalink
Post by Ashish Bhatt
Post by Stefan Naewe
Post by Ashish Bhatt
I am using VC++ win32 application in VS 2005.I have created one project as
win32 and now I want to add one another project which is omnithread into
same solution.I want to make it as static library.
How can I use omnithread.h,nt.h and nt.cpp files in this project.And what my
project settings I have to change?Please suggest me.I tried this by reading
the REadme.Win32 but I did not get success.
I will appretiate your answer.
"Read The Friendly Manual" on how to set the required compiler #defines
for you platform (a look in the file omnithread.h will give you some
hints, too).
Thanks For reply,,
As you told to read the manual but I have already read it and I have done
all things which all were mentained in that manual but still I am getting
the same problem.
Is there any other solution or suggetion.Is tere any other setting which I
am missing.
Then show us a log of your compile run so we can see which settings you're
missing.

S.
--
----------------------------------------------------------------
Dipl.-Inform. Stefan N?we
Abt.: NUS T4
Tel.: 1378
----------------------------------------------------------------
/dev/random says: System halted. There is NOTHING you can do.
Ashish Bhatt
2007-11-01 13:22:57 UTC
Permalink
Thnaks.

I have included omnithread project's header file (omnithread.h) into my
other project's file and now when I compile then it gives me the error like
"No implementation header file". I hope you will get this error msg from the
omnithread.h file.

Is there any setting which I am missing?
Post by Stefan Naewe
Post by Ashish Bhatt
Post by Stefan Naewe
Post by Ashish Bhatt
I am using VC++ win32 application in VS 2005.I have created one project as
win32 and now I want to add one another project which is omnithread into
same solution.I want to make it as static library.
How can I use omnithread.h,nt.h and nt.cpp files in this project.And
what
my
project settings I have to change?Please suggest me.I tried this by reading
the REadme.Win32 but I did not get success.
I will appretiate your answer.
"Read The Friendly Manual" on how to set the required compiler #defines
for you platform (a look in the file omnithread.h will give you some
hints, too).
Thanks For reply,,
As you told to read the manual but I have already read it and I have done
all things which all were mentained in that manual but still I am getting
the same problem.
Is there any other solution or suggetion.Is tere any other setting which I
am missing.
Then show us a log of your compile run so we can see which settings you're
missing.
S.
--
----------------------------------------------------------------
Dipl.-Inform. Stefan N?we
Abt.: NUS T4
Tel.: 1378
----------------------------------------------------------------
/dev/random says: System halted. There is NOTHING you can do.
_______________________________________________
omniORB-list mailing list
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
--
View this message in context: http://www.nabble.com/How-to-include-omnithread-in-my-application--tf4729329.html#a13524851
Sent from the OmniORB - User mailing list archive at Nabble.com.
Stefan Naewe
2007-11-01 13:27:33 UTC
Permalink
Post by Ashish Bhatt
Thnaks.
Post by Stefan Naewe
Post by Ashish Bhatt
Post by Stefan Naewe
Post by Ashish Bhatt
I am using VC++ win32 application in VS 2005.I have created one project as
win32 and now I want to add one another project which is omnithread into
same solution.I want to make it as static library.
How can I use omnithread.h,nt.h and nt.cpp files in this project.And
what
my
project settings I have to change?Please suggest me.I tried this by reading
the REadme.Win32 but I did not get success.
I will appretiate your answer.
"Read The Friendly Manual" on how to set the required compiler #defines
for you platform (a look in the file omnithread.h will give you some
hints, too).
Thanks For reply,,
As you told to read the manual but I have already read it and I have done
all things which all were mentained in that manual but still I am getting
the same problem.
Is there any other solution or suggetion.Is tere any other setting which I
am missing.
Then show us a log of your compile run so we can see which settings you're
missing.
Post by Ashish Bhatt
I have included omnithread project's header file (omnithread.h) into my
other project's file and now when I compile then it gives me the error like
"No implementation header file". I hope you will get this error msg from the
omnithread.h file.
Is there any setting which I am missing?
What part of
Post by Ashish Bhatt
Post by Stefan Naewe
Then show us a log of your compile run so we can see which settings you're
missing.
didn't you understand ?


S.
--
----------------------------------------------------------------
Dipl.-Inform. Stefan N?we
Abt.: NUS T4
Tel.: 1378
----------------------------------------------------------------
/dev/random says: Pet Store: "Buy one, get one flea."
Ashish Bhatt
2007-11-01 13:49:10 UTC
Permalink
I have read the manual from README.Win32 which I have downloaded from the net
with omniORB-4.1.1 and I follow all the steps which has been mentioned in
that file.

Perticularly from the part of macro preprocessor setting this error comes.
And when I did all the settings
then it gives more errors.

Can you sugget me if any other problem which I am missing?

Thanks.
Post by Stefan Naewe
Post by Ashish Bhatt
Thnaks.
Post by Stefan Naewe
Post by Ashish Bhatt
Post by Stefan Naewe
Post by Ashish Bhatt
I am using VC++ win32 application in VS 2005.I have created one
project
as
win32 and now I want to add one another project which is omnithread into
same solution.I want to make it as static library.
How can I use omnithread.h,nt.h and nt.cpp files in this project.And
what
my
project settings I have to change?Please suggest me.I tried this by reading
the REadme.Win32 but I did not get success.
I will appretiate your answer.
"Read The Friendly Manual" on how to set the required compiler #defines
for you platform (a look in the file omnithread.h will give you some
hints, too).
Thanks For reply,,
As you told to read the manual but I have already read it and I have done
all things which all were mentained in that manual but still I am getting
the same problem.
Is there any other solution or suggetion.Is tere any other setting
which
I
am missing.
Then show us a log of your compile run so we can see which settings you're
missing.
Post by Ashish Bhatt
I have included omnithread project's header file (omnithread.h) into my
other project's file and now when I compile then it gives me the error like
"No implementation header file". I hope you will get this error msg from the
omnithread.h file.
Is there any setting which I am missing?
What part of
Post by Ashish Bhatt
Post by Stefan Naewe
Then show us a log of your compile run so we can see which settings you're
missing.
didn't you understand ?
S.
--
----------------------------------------------------------------
Dipl.-Inform. Stefan N?we
Abt.: NUS T4
Tel.: 1378
----------------------------------------------------------------
/dev/random says: Pet Store: "Buy one, get one flea."
_______________________________________________
omniORB-list mailing list
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
--
View this message in context: http://www.nabble.com/How-to-include-omnithread-in-my-application--tf4729329.html#a13525067
Sent from the OmniORB - User mailing list archive at Nabble.com.
Stefan Naewe
2007-11-01 14:09:46 UTC
Permalink
Post by Ashish Bhatt
I have read the manual from README.Win32 which I have downloaded from the net
with omniORB-4.1.1 and I follow all the steps which has been mentioned in
that file.
Perticularly from the part of macro preprocessor setting this error comes.
And when I did all the settings
then it gives more errors.
Can you sugget me if any other problem which I am missing?
Ok. Once again. For the last time:

Can you please, please please show us a log of your compile run so
we can see which settings you're using/missing.

Please, please, please do that....

S.
--
----------------------------------------------------------------
Dipl.-Inform. Stefan Naewe ATLAS Elektronik GmbH
Dept.: NUS T4
phone: +49-(0)421-457-1378 Sebaldsbruecker Heerstr. 235
fax: +49-(0)421-457-3913 28305 Bremen
----------------------------------------------------------------
/dev/random says: Rotisserie: a ferris wheel for chickens
Ashish Bhatt
2007-11-01 14:58:24 UTC
Permalink
1>------ Build started: Project: WinRTMP, Configuration: Debug Win32 ------
1>Compiling...
1>PropertyWnd.cpp
1>e:\testing_and_download\testing\winrtmp_wokiing\winrtmp\omnithread\omnithread.h(137)
: fatal error C1189: #error : "No implementation header file"
1>RTMPDesk.cpp
1>e:\testing_and_download\testing\winrtmp_wokiing\winrtmp\omnithread\omnithread.h(137)
: fatal error C1189: #error : "No implementation header file"
1>RTMPMenu.cpp
1>e:\testing_and_download\testing\winrtmp_wokiing\winrtmp\omnithread\omnithread.h(137)
: fatal error C1189: #error : "No implementation header file"
1>WinRTMP.cpp
1>e:\testing_and_download\testing\winrtmp_wokiing\winrtmp\omnithread\omnithread.h(137)
: fatal error C1189: #error : "No implementation header file"
1>Generating Code...
1>Build log was saved at
"file://e:\Testing_and_Download\Testing\WinRTMP_Wokiing\WinRTMP\Debug\BuildLog.htm"
1>WinRTMP - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========

Sorry Sorry,,
I hope this is the log which you wanted.

I am getting these errors when I compile the project and also here three
projects are available in which my WinRTMP is dependent on the omnithread
project.

And also let me tell you one thing that the project I have been
added(omnithread) in my solution is the debug vesion of other project from
there I have copied this project and included.
Post by Stefan Naewe
Post by Ashish Bhatt
I have read the manual from README.Win32 which I have downloaded from the net
with omniORB-4.1.1 and I follow all the steps which has been mentioned in
that file.
Perticularly from the part of macro preprocessor setting this error comes.
And when I did all the settings
then it gives more errors.
Can you sugget me if any other problem which I am missing?
Can you please, please please show us a log of your compile run so
we can see which settings you're using/missing.
Please, please, please do that....
S.
--
----------------------------------------------------------------
Dipl.-Inform. Stefan Naewe ATLAS Elektronik GmbH
Dept.: NUS T4
phone: +49-(0)421-457-1378 Sebaldsbruecker Heerstr. 235
fax: +49-(0)421-457-3913 28305 Bremen
----------------------------------------------------------------
/dev/random says: Rotisserie: a ferris wheel for chickens
_______________________________________________
omniORB-list mailing list
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
--
View this message in context: http://www.nabble.com/How-to-include-omnithread-in-my-application--tf4729329.html#a13525848
Sent from the OmniORB - User mailing list archive at Nabble.com.
Stefan Naewe
2007-11-01 16:52:21 UTC
Permalink
Post by Ashish Bhatt
1>------ Build started: Project: WinRTMP, Configuration: Debug Win32 ------
1>Compiling...
1>PropertyWnd.cpp
1>e:\testing_and_download\testing\winrtmp_wokiing\winrtmp\omnithread\omnithread.h(137)
: fatal error C1189: #error : "No implementation header file"
1>RTMPDesk.cpp
1>e:\testing_and_download\testing\winrtmp_wokiing\winrtmp\omnithread\omnithread.h(137)
: fatal error C1189: #error : "No implementation header file"
1>RTMPMenu.cpp
1>e:\testing_and_download\testing\winrtmp_wokiing\winrtmp\omnithread\omnithread.h(137)
: fatal error C1189: #error : "No implementation header file"
1>WinRTMP.cpp
1>e:\testing_and_download\testing\winrtmp_wokiing\winrtmp\omnithread\omnithread.h(137)
: fatal error C1189: #error : "No implementation header file"
1>Generating Code...
1>Build log was saved at
"file://e:\Testing_and_Download\Testing\WinRTMP_Wokiing\WinRTMP\Debug\BuildLog.htm"
1>WinRTMP - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
Sorry Sorry,,
I hope this is the log which you wanted.
Not really...
I want to see the full commandline of the compiler (CL.EXE in
your case). There's a setting in Visual Studio that makes the
compile run more verbose. Please enable that and post the full
log. (maybe you find the information also in your "BuildLog.htm")


S.
--
----------------------------------------------------------------
Dipl.-Inform. Stefan Naewe ATLAS Elektronik GmbH
Dept.: NUS T4
phone: +49-(0)421-457-1378 Sebaldsbruecker Heerstr. 235
fax: +49-(0)421-457-3913 28305 Bremen
----------------------------------------------------------------
/dev/random says: I'm pink, therefore I'm Spam.
Ashish Bhatt
2007-11-02 07:41:19 UTC
Permalink
Sorry Stefan,,

Here I am sending the whole the data which I got in the BuildLog.htm file.Do
you fing any problem or any suggetion then please reply me.

Build Log Build started: Project: WinRTMP, Configuration: Debug|Win32
Command Lines Creating temporary file
"e:\Testing_and_Download\Testing\WinRTMP_Wokiing\WinRTMP\Debug\RSP0000018322544.rsp"
with contents
[
/Od /I "./omnithread" /I ".." /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D
"_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Yu"stdafx.h"
/Fp"Debug\WinRTMP.pch" /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /Wp64 /ZI /TP
.\WinRTMP.cpp

.\RTMPMenu.cpp

.\RTMPDesk.cpp

.\PropertyWnd.cpp
]
Creating command line "cl.exe
@e:\Testing_and_Download\Testing\WinRTMP_Wokiing\WinRTMP\Debug\RSP0000018322544.rsp
/nologo /errorReport:prompt"
Output Window Compiling...
PropertyWnd.cpp
e:\testing_and_download\testing\winrtmp_wokiing\winrtmp\omnithread\omnithread.h(155)
: fatal error C1189: #error : "No implementation header file"
RTMPDesk.cpp
e:\testing_and_download\testing\winrtmp_wokiing\winrtmp\omnithread\omnithread.h(155)
: fatal error C1189: #error : "No implementation header file"
RTMPMenu.cpp
e:\testing_and_download\testing\winrtmp_wokiing\winrtmp\omnithread\omnithread.h(155)
: fatal error C1189: #error : "No implementation header file"
WinRTMP.cpp
e:\testing_and_download\testing\winrtmp_wokiing\winrtmp\omnithread\omnithread.h(155)
: fatal error C1189: #error : "No implementation header file"
Generating Code...
Results Build log was saved at
"file://e:\Testing_and_Download\Testing\WinRTMP_Wokiing\WinRTMP\Debug\BuildLog.htm"
WinRTMP - 4 error(s), 0 warning(s)

Thanks Once Again.
Post by Stefan Naewe
Post by Ashish Bhatt
1>------ Build started: Project: WinRTMP, Configuration: Debug Win32 ------
1>Compiling...
1>PropertyWnd.cpp
1>e:\testing_and_download\testing\winrtmp_wokiing\winrtmp\omnithread\omnithread.h(137)
: fatal error C1189: #error : "No implementation header file"
1>RTMPDesk.cpp
1>e:\testing_and_download\testing\winrtmp_wokiing\winrtmp\omnithread\omnithread.h(137)
: fatal error C1189: #error : "No implementation header file"
1>RTMPMenu.cpp
1>e:\testing_and_download\testing\winrtmp_wokiing\winrtmp\omnithread\omnithread.h(137)
: fatal error C1189: #error : "No implementation header file"
1>WinRTMP.cpp
1>e:\testing_and_download\testing\winrtmp_wokiing\winrtmp\omnithread\omnithread.h(137)
: fatal error C1189: #error : "No implementation header file"
1>Generating Code...
1>Build log was saved at
"file://e:\Testing_and_Download\Testing\WinRTMP_Wokiing\WinRTMP\Debug\BuildLog.htm"
1>WinRTMP - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
Sorry Sorry,,
I hope this is the log which you wanted.
Not really...
I want to see the full commandline of the compiler (CL.EXE in
your case). There's a setting in Visual Studio that makes the
compile run more verbose. Please enable that and post the full
log. (maybe you find the information also in your "BuildLog.htm")
S.
--
----------------------------------------------------------------
Dipl.-Inform. Stefan Naewe ATLAS Elektronik GmbH
Dept.: NUS T4
phone: +49-(0)421-457-1378 Sebaldsbruecker Heerstr. 235
fax: +49-(0)421-457-3913 28305 Bremen
----------------------------------------------------------------
/dev/random says: I'm pink, therefore I'm Spam.
_______________________________________________
omniORB-list mailing list
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
--
View this message in context: http://www.nabble.com/How-to-include-omnithread-in-my-application--tf4729329.html#a13541330
Sent from the OmniORB - User mailing list archive at Nabble.com.
Stefan Naewe
2007-11-02 12:57:54 UTC
Permalink
Post by Ashish Bhatt
Sorry Stefan,,
Here I am sending the whole the data which I got in the BuildLog.htm file.Do
you fing any problem or any suggetion then please reply me.
Build Log Build started: Project: WinRTMP, Configuration: Debug|Win32
Command Lines Creating temporary file
"e:\Testing_and_Download\Testing\WinRTMP_Wokiing\WinRTMP\Debug\RSP0000018322544.rsp"
with contents
[
/Od /I "./omnithread" /I ".." /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D
"_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Yu"stdafx.h"
/Fp"Debug\WinRTMP.pch" /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /Wp64 /ZI /TP
.\WinRTMP.cpp
There we go!

Citing from README.win32.txt:
"
c)
[...]
5. **This is an important step.**
Select The Code Generaion Tab: (Under C++ in project properties)

In the Preprocessor Definitions Box Add The Macros:

__WIN32__,__x86__,_WIN32_WINNT=0x0400

If this is NT 4.0, Windows 2000 or XP (or something later), add
the macros __NT__ and __OSVERSION__=4 as well.
"

Can you guess what't missing ?

S.
--
----------------------------------------------------------------
Dipl.-Inform. Stefan Naewe ATLAS Elektronik GmbH
Dept.: NUS T4
phone: +49-(0)421-457-1378 Sebaldsbruecker Heerstr. 235
fax: +49-(0)421-457-3913 28305 Bremen
----------------------------------------------------------------
/dev/random says: Prosecutors will be violated
Ashish Bhatt
2007-11-02 15:36:43 UTC
Permalink
Thanks you very much.

I tried these macros including the project preprocessor and I got the
solution.

I hope I was making very silly mistake and that was that , I was adding
these macros to omnithread project but not in the my other project in which
I was going to include omnithread.h file.

Now It is working properly.And if any problem will come then I will contact
you.

Once again Thanks for reply.
Post by Stefan Naewe
Post by Ashish Bhatt
Sorry Stefan,,
Here I am sending the whole the data which I got in the BuildLog.htm file.Do
you fing any problem or any suggetion then please reply me.
Build Log Build started: Project: WinRTMP, Configuration: Debug|Win32
Command Lines Creating temporary file
"e:\Testing_and_Download\Testing\WinRTMP_Wokiing\WinRTMP\Debug\RSP0000018322544.rsp"
with contents
[
/Od /I "./omnithread" /I ".." /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D
"_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Yu"stdafx.h"
/Fp"Debug\WinRTMP.pch" /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /Wp64 /ZI /TP
.\WinRTMP.cpp
There we go!
"
c)
[...]
5. **This is an important step.**
Select The Code Generaion Tab: (Under C++ in project properties)
__WIN32__,__x86__,_WIN32_WINNT=0x0400
If this is NT 4.0, Windows 2000 or XP (or something later), add
the macros __NT__ and __OSVERSION__=4 as well.
"
Can you guess what't missing ?
S.
--
----------------------------------------------------------------
Dipl.-Inform. Stefan Naewe ATLAS Elektronik GmbH
Dept.: NUS T4
phone: +49-(0)421-457-1378 Sebaldsbruecker Heerstr. 235
fax: +49-(0)421-457-3913 28305 Bremen
----------------------------------------------------------------
/dev/random says: Prosecutors will be violated
_______________________________________________
omniORB-list mailing list
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
--
View this message in context: http://www.nabble.com/How-to-include-omnithread-in-my-application--tf4729329.html#a13545187
Sent from the OmniORB - User mailing list archive at Nabble.com.
Loading...