Author Topic: CC3250MT.DLL missing  (Read 17169 times)

Offline niblettr

  • Multiple posting newcomer
  • *
  • Posts: 13
CC3250MT.DLL missing
« on: August 09, 2012, 12:06:37 pm »
Hi, Im trying to build a standalone win32 gui program using the Borland 5.5 compler and C:B 10.05 rev 6283
Every time I run the .exe I get System error CC3250MT.DLL missing.
The project compiles and runs fine under C:B

I've googled this and found that I should do the following:-

Packages - turn off 'Build with Runtime Packages'
Linker - turn off 'Use Dynamic RTL'

You have to link with one of BCC's cw32*.lib runtime library files :

cw32.lib = Single Threaded / Static Link
cw32i.lib = Single Threaded / Dynamic Link (cc3250.dll)
cw32mt.lib = Multi Threaded / Static Link
cw32mti.lib = Multi Threaded / Dynamic Link (cc3250mt.dll)

So I tried cw32.lib and then cw32i.lib (I suspects its cw32i.lib that  need)
Built the project in release mode and still cant get the .exe located in \bin\release\ to run without that dll???

here is the Build log:-


-------------- Clean: Release in test ---------------

Cleaned "test - Release"

-------------- Build: Release in test ---------------

bcc32.exe -q -w  -O2  -w   -IC:\Borland\BCC55\include  -oobj\Release\main.obj -c main.cpp
main.cpp:
Warning W8057 main.cpp 69: Parameter 'hPrevInstance' is never used in function __stdcall WinMain(HINSTANCE__ *,HINSTANCE__ *,char *,int)
Warning W8057 main.cpp 69: Parameter 'lpszArgument' is never used in function __stdcall WinMain(HINSTANCE__ *,HINSTANCE__ *,char *,int)
ilink32.exe -q -aa   -LC:\Borland\BCC55\lib -LC:\Borland\BCC55\lib\psdk  c0w32 obj\Release\main.obj ,bin\Release\test.exe,,gdi32.lib user32.lib kernel32.lib cw32mti.lib cw32i.lib comdlg32.lib cw32i.lib ,,
Output size is 7.50 KB
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 2 warnings


One thing,(Packages - turn off 'Build with Runtime Packages') where is this pachages option? I can't find it anywhere?????
« Last Edit: August 09, 2012, 12:14:24 pm by niblettr »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CC3250MT.DLL missing
« Reply #1 on: August 09, 2012, 12:15:30 pm »
ilink32.exe -q -aa   -LC:\Borland\BCC55\lib -LC:\Borland\BCC55\lib\psdk  c0w32 obj\Release\main.obj ,bin\Release\test.exe,,gdi32.lib user32.lib kernel32.lib cw32mti.lib cw32.lib comdlg32.lib cw32.lib ,,
Well maybe yo should read your logs more carefully. The highlighted lib in red is the first the linker picks up and is the DYNAMIC version.
Also, you link 3 times against a version of cw32XXX (all bold) why? Clean up your project / compiler settings!

And also, please don't let us do your homework. >:(
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline niblettr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: CC3250MT.DLL missing
« Reply #2 on: August 09, 2012, 12:55:38 pm »
WOW, friendly bunch here GOODBYE!

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: CC3250MT.DLL missing
« Reply #3 on: August 09, 2012, 01:11:12 pm »
WOW, friendly bunch here GOODBYE!
Your post violates our forum rules in many ways.
One is, that syou show, you did not even read them or you do not care.
See for example this:
2. Compiler/Linker errors are NOT Code::Blocks errors. Usually, C++ newcomers tend to confuse the Editor/IDE (Code::Blocks) with the Compiler (MINGW / GCC). You may see some errors in the compiler output because you missed to do something right in your code. But that's not Code::Blocks troubleshooting, that's C++ troubleshooting and does not belong in here. If your program doesn't compile, READ THE C++ MANUAL.

3. Is your problem library, framework specific? There are appropriate forums for it, not the Code::Blocks forum.

And MortenMacFly gave you some hints in his answers instead of just silently removing or locking your thread.
He was neither unfriendly nor insulting.

What do you expect more ?

Offline niblettr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: CC3250MT.DLL missing
« Reply #4 on: August 09, 2012, 01:42:46 pm »
No, I didn't expect anymore apart from the condecending manner in which he finished off the post.
Thank you MortenMcFly.

I am a complete novice at i386 programming so bear with me.

I suspected that my problems are related to the settings I have selected within C:B which is why I feel I have posted in the correct place. Help?

Anyway, I've cleaned up some of the options with C:B and I get :-

ilink32.exe -q -aa   -LC:\Borland\BCC55\lib -LC:\Borland\BCC55\lib\psdk  c0w32 obj\Release\HexMain.obj obj\Release\HexNobbler.obj obj\Release\HexMain.auto.obj ,bin\Release\Hex_project.exe,,gdi32.lib user32.lib kernel32.lib cw32.lib comdlg32.lib cw32i.lib ,,obj\Release\HexMain.res

where is cw32i.lib comming from? I have only added cw32.lib in the link libraries section.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline niblettr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: CC3250MT.DLL missing
« Reply #6 on: August 09, 2012, 02:04:24 pm »
lol, I did and got in a right muddle, so I ignored the global compiler settings and decided to stick to project compiler specific setting.
I did this by right clicking the my project  Build Options->Policy and selected "Use project options only" (done for the root project, and Debug and Release)
« Last Edit: August 09, 2012, 02:33:24 pm by niblettr »

Offline niblettr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: CC3250MT.DLL missing
« Reply #7 on: August 09, 2012, 02:58:31 pm »
interesting, I still get :-

ilink32.exe -q -aa   -LC:\Borland\BCC55\lib -LC:\Borland\BCC55\lib\psdk  c0w32 obj\Release\HexMain.obj obj\Release\HexNobbler.obj obj\Release\HexMain.auto.obj ,bin\Release\Hex_project.exe,,gdi32.lib user32.lib kernel32.lib cw32.lib comdlg32.lib cw32i.lib ,,obj\Release\HexMain.res

and .exe in the \bin\Debug\ works! without moaning about the .dll
BUT
the .exe \bin\Release\ does NOT.

I did rebuild with buid target:Debug and then build target:release.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CC3250MT.DLL missing
« Reply #8 on: August 09, 2012, 04:19:08 pm »
interesting, I still get :-
The linker settings are constructed form:
1.) global compiler settings - linker libs and "other linker options"
2.) project linker settings -> same thing
3.) target linker settings -> same thing
4.) Attached build scripts (which I doubt you have)
So you need to check at least 6 places. But you should know best, where you started adding flags... ???
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline niblettr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: CC3250MT.DLL missing
« Reply #9 on: August 09, 2012, 07:40:34 pm »
does
 Build Options->Policy and selected "Use project options only"
linker Options->Policy and selected "Use project options only"

under project property settings basically ignore global compiler settings?
if so, i shouldnt need to change global build and linker setting..no?
whats a build script? (is this auto generated?) If its a manual thing, then no, I don't have one.

Offline niblettr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: CC3250MT.DLL missing
« Reply #10 on: August 10, 2012, 09:22:25 am »
ok, I created a new blank win32 project, added my code and made all the necessary changes to the build options including
 Build Options->Policy and selected "Use project options only"
linker Options->Policy and selected "Use project options only" and then did a rebuild.
Result:-

-------------- Build: Release in hexsource ---------------
bcc32.exe -q -tW  -w   -IC:\Borland\BCC55\include  -oobj\Release\HexMain.obj -c ..\HexMain.cpp
..\HexMain.cpp:
brcc32.exe -32 -foobj\Release\HexMain.res  ..\HexMain.rc
Borland Resource Compiler  Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
bcc32.exe -q -tW  -w   -IC:\Borland\BCC55\include  -oobj\Release\HexNobbler.obj -c ..\HexNobbler.c
..\HexNobbler.c:
..\HexMain.auto.cpp:
ilink32.exe -q -aa   -LC:\Borland\BCC55\lib -LC:\Borland\BCC55\lib\psdk  c0w32 obj\Release\HexMain.obj obj\Release\HexNobbler.obj obj\Release\HexMain.auto.obj ,bin\Release\hexsource.exe,,gdi32.lib user32.lib kernel32.lib cw32.lib comdlg32.lib cw32i.lib ,,obj\Release\HexMain.res  
Output size is 74.00 KB
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 0 warnings

(where is cw32i.lib coming from?)
It all worked as it should (the .exe in the \release folder runs without the dll which is good)
I checked the settings from yesterdays project and compaired then  to the new project and they are the same (as far as I can tell)
So not sure quite whats going on.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CC3250MT.DLL missing
« Reply #11 on: August 10, 2012, 09:38:38 am »
(where is cw32i.lib coming from?)
I can't tell you. You must have setup that anywhere, because if you search over the entire code base of Code::Blocks there is no such thing, we don't do any magic. You can also try to remove your default.conf file which stores all settings you did for C::B to see if it is gone then. Also, you can post a minimal zipped sample project here for convenience.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: CC3250MT.DLL missing
« Reply #12 on: August 10, 2012, 09:46:13 am »
I can't tell you. You must have setup that anywhere, because if you search over the entire code base of Code::Blocks there is no such thing, we don't do any magic. You can also try to remove your default.conf file which stores all settings you did for C::B to see if it is gone then. Also, you can post a minimal zipped sample project here for convenience.
Another option is to search the default.conf for this string, to see if it is there.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CC3250MT.DLL missing
« Reply #13 on: August 10, 2012, 11:04:01 am »
Another option is to search the default.conf for this string, to see if it is there.
Yes - I was about to mention the same... well if you did - then also search inside your project files (meaning source, header, C::B files).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline niblettr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: CC3250MT.DLL missing
« Reply #14 on: August 10, 2012, 11:20:43 am »
ok, I found this in the default.conf file :-

<bcc>
            <NAME>
               <str>
                  <![CDATA[Borland C++ Compiler (5.5, 5.82)]]>
               </str>
            </NAME>
            <COMPILER_OPTIONS>
               <str>
                  <![CDATA[-w;]]>
               </str>
            </COMPILER_OPTIONS>
            <INCLUDE_DIRS>
               <str>
                  <![CDATA[C:\Borland\BCC55\include;]]>
               </str>
            </INCLUDE_DIRS>
            <LIBRARY_DIRS>
               <str>
                  <![CDATA[C:\Borland\BCC55\lib;C:\Borland\BCC55\lib\psdk;]]>
               </str>
            </LIBRARY_DIRS>
            <LIBRARIES>
               <str>
                  <![CDATA[comdlg32.lib;cw32i.lib;]]>
               </str>
            </LIBRARIES>
            <MASTER_PATH>
               <str>
                  <![CDATA[C:\Borland\BCC55]]>
               </str>
            </MASTER_PATH>
            <macros>


Should I just change cw32i.lib to cw32.lib and save or just delete the entry (means I have to manually add to project which I have been doing anyway.)
« Last Edit: August 10, 2012, 11:22:43 am by niblettr »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CC3250MT.DLL missing
« Reply #15 on: August 10, 2012, 11:45:45 am »
Should I just change cw32i.lib to cw32.lib and save or just delete the entry (means I have to manually add to project which I have been doing anyway.)
No, just go to the global compiler options -> Settings -> Compiler and remove the libraries under the tab "linker settings"!

BTW: Never edit the config file manually! This can seriously break C::B and even lead to crashes. Only C::B is allowed to edit this file though the settings UI interface.

BTW: This also shows me that you were too lazy to do what I told you:
The linker settings are constructed form:
1.) global compiler settings - linker libs and "other linker options"
2.) project linker settings -> same thing
3.) target linker settings -> same thing
4.) Attached build scripts (which I doubt you have)
So you need to check at least 6 places.

...because otherwise you would have found yourself. So don't expect any more help.

Edit: Topic locked.
« Last Edit: August 10, 2012, 11:48:06 am by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: CC3250MT.DLL missing
« Reply #16 on: August 10, 2012, 11:51:19 am »
Build Options->Policy and selected "Use project options only"
linker Options->Policy and selected "Use project options only"

Global compiler settings are used in any case, as long as you use the compiler they belong to, that's wha they are called global.

The policy you use is to specify, whether to use only target or project options and (if you use both) in which order they should be applied.

EDIT:

There are only a few cases where global options need to be used.

Offline niblettr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: CC3250MT.DLL missing
« Reply #17 on: August 10, 2012, 12:24:50 pm »
MortenMacFly, what is you problem?? Why are you are so rude and arrogant?
I asked the question first whether :-
 Build Options->Policy and selected "Use project options only"
linker Options->Policy and selected "Use project options only"

ignores the global setting but I didnt get a reply so I patiantly waited until I got an answer THEN I would have done the steps you asked?
I didn't ask for YOUR help specifically so If you didn't want to help then don't rather than just being rude!

Ok
« Last Edit: August 10, 2012, 12:30:39 pm by niblettr »

Offline niblettr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: CC3250MT.DLL missing
« Reply #18 on: August 10, 2012, 12:25:53 pm »
Thankyou Jens, that makes sense now. I will always keep an eye on the global settings ;)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CC3250MT.DLL missing
« Reply #19 on: August 10, 2012, 12:38:20 pm »
MortenMacFly, what is you problem?? Why are you are so rude and arrogant?
Look, the thing is very simple: I don't act arrogant, but eager you to respect our forum rules you agreed to when registering with the forums. Obviously you didn't even bother to read those and you don't bother to read carefully any help given.

If all people are always asking the same question and don't read the help we provide in advance we answer over an over again and again the same questions. In your case its a compiler/project library setup which has been answered roughly a million times now. I am just sick of over-and-over repeating what's written in the comprehensive FAQ because people don't want to read.

We are responsible for the content of the forum BY LAW, so I cannot just ignore what you write. And I also can't ignore what others answer. If you are running a forum yourself you'll understand my frustration, I promise.

If that sounds rude to you - I am sorry, but thats the world we live in. And I'd love to improve Code::Blocks instead of listening to forum noise.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline niblettr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: CC3250MT.DLL missing
« Reply #20 on: August 10, 2012, 12:43:55 pm »
I did a forum search and could not find anything related to my problem.
I posted in the help (I think its in the right location)
so what did I do wrong exactly?
« Last Edit: August 10, 2012, 12:46:12 pm by niblettr »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CC3250MT.DLL missing
« Reply #21 on: August 10, 2012, 01:28:14 pm »
so what did I do wrong exactly?
Well you should first try to understand your problem. If you don't understand how a compiler work/linker works, this forum is of no help. For example: If your app has a dependency on a DLL its your fault, because you link against dynamic libs. Its not C::B's fault and it will never be. Then inspect the build log precisely and try on the command line if unsure. If you get the same error on the command line again its not a C::B issue. Finally don't expect compiler specific support here - C::B can manage very many compilers and we don't even know all of them so we cannot provide full support.

This all is written in the FAQ which besides these hints also gives a lot really helpful advise in general to understand and fix such issues yourself. So I strongly suggest you read it, besides the C::B manual / WiKi where is written exactly, how the C::B compiler front-end works. It is not only to know C::B but also to gather more general understanding and I am sure you will learn many things, maybe even for your live:

http://forums.codeblocks.org/index.php/topic,9996.0.html

http://wiki.codeblocks.org/index.php?title=Creating_a_new_project

http://wiki.codeblocks.org/index.php?title=A_short_overview_about_Code::Blocks_architecture

http://wiki.codeblocks.org/index.php?title=FAQ

...more precisely:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)

...even more:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

http://www.codeblocks.org/docs/main_codeblocks_en.html

Try to capture the general story behind these:
http://wiki.codeblocks.org/index.php?title=User_documentation#Third-party_libraries

So... to sum up: If you want to do all of us a favour, read what we provide out of our experience. Note that this is not meant offending, I seriously believe it will help and would have helped in the first place.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline niblettr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: CC3250MT.DLL missing
« Reply #22 on: August 10, 2012, 03:46:55 pm »
Not once did I say the its was C:B fault! It did do a lot of reading up prior to posting my problem (i even hinted and posted my google findings on the matter in my very first post. So, its not good carma calling people who you don't etc. lazy etc (im pretty sure that does not follow the code of practice for MODs etc.)
Anyway, I think we've established that the problem was, I've mixed up the settings within C:B which is why I sought so seek help on a C:B forum.

Thank you for all your help, problem got solved.