Best use of  static constants in project level

Generally , we use magic numbers in loops & conditional statements in our code. But we have a better option of using final static variables(constants) instead of magic numbers. But the problem is if we need to use these constants in whole project then what is the best suitable place where we can put these constants in project.

At some part of the project everyone uses anyway.

Similar Messages

  • Best practice question: static constant keys

    Hi- quick one here... just curious, I need a constant defined that I can use as a key into various NSDictionary instances and for other purposes also.
    I tried defining this in my header file:
    static NSString const *KEY_ID = @"ID";
    But passing KEY_ID as the key in dictionary's setValue:forKey: function causes a warning about pointer types.
    Basically, I need the equivalent of ...public static final String KEY_ID = "ID".... in Java. Any thoughts?

    If you look at your headers, Apple's approach is generally:
    extern NSString * const KEY_ID;
    With a followup declaration/assignment in a relevant .m file.

  • Using static constants as id in FXML

    Is it possible to use a static constant as the id in FXML, and if so how ?
    For example if i have a class Person with a static constant defined, such as:
    static final String NAMEFIELD = "name";
    And then in an FXML file:
    <?import Person?>
    <TextField id=Person.NAMEFIELD />
    The above FXML code generates an error saying that an " is exspected.
    I've also tried with "$Person.NAMEFIELD" but that doesn't seem to work either.
    Any suggestions ?

    Is it possible to use a static constant as the id in FXML, and if so how ?Yes, this is supported in JavaFX 2.2:
    <TextField>
      <id><Person fx:constant="NAMEFIELD"/></id>
    </TextField>
    The above FXML code generates an error saying that an " is exspected.Quotes are required. FXML must be syntactically valid XML.

  • Converting Cost Budget From Plan level Type to Project Level

    Hi There ,
    I am Working on Project Accounting in Oracle apps .Perviously we used to create projects using oracle forms now we have created the OA pages for the same and using them to create the projects .
    Thus Cost budget done by using forms will be at project level and Cost Budget done through OA pages is at PLAN TYPE .
    And my problem is , I want to convert PLAN TYPE cost budget to PROJECT LEVEL cost budget. Do any body know how to do it , I know that we can convert project level to plan type by running one request , is there any such request to solve my problem.
    Please help me
    Thanks

    Zafar,
    What exactly ur looking for, can u explain in oaf terms, as this is a oaf forum.
    --Mukul                                                                                                                                                                                                                                                                                       

  • Best/fastest way to standardize different audio levels in long projects????

    Hey all,
    I regularly have long projects with lots of different audio and audio levels (eg weddings and events) and am trying to figure the fastest and best way to set all the different levels to output around a standard level (eg around -4dB) and not peak!
    I want to be able to do this at the end of my project(workflow) rather than individually adjusting each audio clip as i go, which wastes a lot of time.
    I'm sure there has to be a simple way to do this but i haven't learnt it yet, so has anyone got the best/fastest method?

    Well IMO "best" and "fastest" don't go together in a sentence very often!
    However I think the key is in establishing a rock-solid set monitoring level (ie volume) for the speakers you mix on which never changes (at least while you mix). In professional mixing it's done with equipment to analyze the mixing room and calibrate everything to a nominal 85dB spl at the mixing position (for the cinema... which is quite loud!).
    While you might not want to emulate this you can get some content you are happy with (your projects, CD's, DVD's etc) and play them in you environment with your mixing software faders at zero gain and the meters reading -12dB or thereabouts (they will if the content was mixed correctly). Now adjust your listening volume (on your speakers or amp) until you get a comfortable listening/mixing level (you could get a Radio Shack sound pressure meter and try to set the volume to around 70-80dB spl or whatever so if you ever need to reset you can) and mark the amp/speaker levels with a grease pencil. Never Move this control again.
    From now on whenever your audio tracks reach this 'ideal' listening level, your level meters will show the ideal -12dB. Your ears just have to "learn" how loud this is... and then you can mix by ear... keeping an eye on the meters to make sure you are on target. If you want the audio to sound 'normal' mix to a comfortable listening level, if you want it softer lower the track's fader until it sounds right ... louder? Well turn it up. Although you can only go louder until your meters overload... which is at 12dB. (that's why some people like to set their "ideal" level lower -15 or -18dB, so there's more room to get loud (especially in the cinema!). It's all easier said than done ... but once you learn your listening levels you'll just adjust tracks correctly as you go, then tune it all up on a mixing pass.
    If you have a completed project you still have to do all the above... set your listening level. Then scan through your material. I like to find the worst clip (probably too low) and tweak it to sound the best you can (add gain, eq, etc) trying to get it up around -15 to -12 dB. Then run though the whole project bringing other clips down to match the worst. This will get everything basically even.
    After all this you might try running the whole mix through a single Sub Mix and insert a compressor across it (with a basic 'Mix" preset) to even the whole thing out. Though a lot of the time, with Doco type sound, I find a pretty even mix can be done by ear alone!
    It's a lot to think about ... but the key is learning what your ideal target level sounds like. Then use your ears.. and check your STP level meters to make sure all is OK.
    Hope this helps
    Lee
    Hope this helps
    Lee

  • Use reflection to access static constant

    I have a class with a static constant value. Can somebody show me to access the constant value using reflection.
    Thanks
    Regards,
    Stephen

    I have class
    public class one{
    public static final String TABLE_KEY = "something";
    to access the class
    one.class.getField(">>what to put here<<") it's static method don't hv any getter method???

  • [svn:fx-trunk] 10891: Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants

    Revision: 10891
    Author:   [email protected]
    Date:     2009-10-06 09:46:47 -0700 (Tue, 06 Oct 2009)
    Log Message:
    Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants
    QE notes: None.
    Doc notes: None
    Bugs: SDK-22676
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22676
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java

    Have you tried using com.adobe.air.crypto.EncryptionKeyGenerator instead?

  • Excessive use of 'static' in Objects

    Hello all,
    I have inherited a code base which consists of around 90 objects seemingly randomly thrown together in a down and dirty effort to crank out working code as soon as possible. The original programmer has left the company and I've inherited his projects. While attempting to isolate some performance shortcomings I noticed that nearly every single class has a static method of some sort or another. My understanding is that this is clearly a bad idea as, if for no other reason, those objects, having a static method, will exist during the entire lifetime of the application and are not candidates to be GC'd. Furthermore these objects contain many String instances which, if the object that contains them isn't ever eliminated, will remain as huge memory hogs as well.
    So, in essence, what are the general thoughts of the architects and developers on this board regarding the use of the 'static' keyword and it's effect on Object design and the implications for performance and memory? Any feedback would be greatly appreciated. I have looked through numerous books on OO design but nobody seems to speak directly to the implications and "best practices" of designing with the 'static' keyword, where, when and how it's most effectively used, etc.
    Thanks!

    Hi,
    would you consider that the primary motivation for use of static, that the method in question use only class member variables?Often yes, but not always. The example given by jschell above is typical of a static method, but you can't always make methods static like this. If isDefined(String s) were specified by an interface (it couldn't be private in this case though), to implement different variants of what it means for a String to be 'defined', then you couldn't make the method static even if it did not depend on the object you are calling it on.
    However I am still looking for a good "rule of thumb" that will help me to determine what the most appropriate use of the static keyword is/should be.For methods you should ask yourself "How will the method be called?" If it only makes sense to call it on an instance of the object then DON'T make it static, even if it could be. Static methods should only be called like this:
       ClassName.staticMethod();and not like this:
       instanceOfClass.staticMethod();as this second style of invocation is very misleading (and it really winds me up when I see it!).
    As for fields - in my own code I tend to have private static final objects for constants or 'collections' that are used by many instances, or which are available through public static utility methods. Immutable static final fields I often make public. Pretty much everything else is non-static. I have no idea whether this is 'best practice' though.
    You may also want to look at the java.util.Collections and java.util.Arrays classes. These cannot be instantiated and provide only static utility methods for manipulating other objects. It can sometimes help to split off the static 'utility' functions into another class like this, especially if common functions can be applied to an interface.
    Ol.

  • Resource Management of Shared Resource Pool at the Project Level

    I am having difficulty figuring out how to implement our resource management process. Currently we have one "Resource Pool" project that has all the shared resources. It is connected to both a "master portfolio" plan that has some task
    detail in it and other individual project plans that have their own WBS (for larger projects).
    The difficulty arises because we want to do resource allocation at a project level, but the resource usage view shows the WBS/task level detail.  I've tried grouping the resources assignments by resource and then project, but since everything is
    in the "Resource Pool" project, they all group under that project.  I've tried adding the "Project" field and it does show as the source project, but it doesn't group on that field, but rather the "Resource Pool" project
    only.
    How can I see resource allocation/usage at just the project level so our managers can do planning, negotiation, and re-allocation on a periodic basis with one simple view?
    My best current idea is to disconnect all the sub-tasks from the sharer, eliminate the WBS below the project level in the master plan and attach resources at that single line project in that master plan.  Then, we would have to manually alter the "Max"
    available time in the individual sub-plans as we altered allocations.  That essentially disconnects individual plans from both the master plan and the shared resource pool.
    Is there a better way?

    Mark,
    Yeah, I think there is a better way. Having a linked structure the contains both a pool file and a dynamic master is tenuous enough (i.e. prone to corruption), but if you start disconnecting from the pool and and messing with the master, you will most certainly
    invite trouble.
    But here is an approach that might work. I tested it on a sample pool file with two sharer files and I think it might give you what you want.
    1. First, either manually copy or use VBA to copy the contents of the Project field to a custom text field in each sharer file
    2. In the pool file display the Resource Usage view
    3. Create a group that first groups on the Resource Name and then on the Text1 field, and select "group assignments, not resource"
    4. Change the Text1 group field to be "assignment"
    Does that give you what you want?
    To help visualize, here is a screenshot of my test file. After grouping I applied a filter to Text1 with the option to also show summary tasks:
    John

  • Oracle proc Pro*C, g++/c++ compile error due to static const unsigned int sqlctx

    I'm using Oracle 8.1.6 for Linux, and 7.3.4 on HP-UX. Compiler is gcc/g++ 2.95.2
    In working with the Oracle precompiler on both HPUX and Linux, I've found a problem with the way that the Linux precompiler generates the sqlctx variable.
    On linux, the following is generated when you run the precompiler:
    static const unsigned int sqlctx = 1;
    However, on HPUX, this is the corresponding code:
    static unsigned long sqlctx = 10673468;
    When you compile the Linux version with g++/c++ or aCC, you get fatal errors of this nature:
    SQLSubsystem.cpp:562: passing `const unsigned int *' as argument 2 of `sqlcxt(void **, unsigned int *, sqlexd *, const sqlcxp *)' discards qualifiers
    Is there a way to force the output of proc to leave off the const?
    If you view the binary file proc, you can find the static unsigned int string listed. So I think it may be an option. However, I can't seem to turn it on.
    Thanks-
    Matt Wright

    As for sqlctx:
    sqlctx is a module identifier variable. i.e. if your project consists of multiple modules, each sqlctx should have different value.
    I have seen this error only on Linux Pro*C starting of 8.1.5 version (have not tested 8.0.5 nor 8.1.6).
    Anyway, I really can not understand why this error is not patched already.
    As for constness:
    I can not tell if there is an option which would solve such issue. I can only advise not to use -Werror option of gcc. It generates about 4-5 warnings per module, but it works ;-))

  • Remote replication - scheduled or continuous? Project-level or share-level?

    Hi, I had a lot of problems with RR with the older 2009 firmware, but there's supposedly some improvements to in Q1 2010.
    Previously, I've been doing scheduled and share-level rep, because any time the connection between the devices was broken, the replication failed and could not be restarted, resulting in me having to destroy the target rep and starting over. I have to move a couple terabytes over a 20mbit line between the devices, so it took a couple of months because of multiple restarts before all the data had copied over.
    I have two questions regarding best practice:
    1. Should I be using scheduled or continuous replication?
    If the connection is lost during a continuous rep, will I need destroy the target, and re-create it from scratch?
    2. Is it better to replicate at project-level, or set up individual replication for each share and LUN?
    I need to be able to mount a single share if necessary, but managing share-level replication is very time consuming, because I have to set up a schedule that allows each share to fully replicate before it starts the next share. But if a whole project fails, I have to restart terabytes of data.
    Thank you,
    Max

    Hello,
    In a continuous replication, one the initial copy is sent, any interruption in communication would require the last update package to be sent again, not the entire data.
    Regarding, which is "better" is your preference. Each has its own best use and one is not inherently better than the other method.
    -Jay

  • Project level variables in OSB

    Is there any way we can declare project level variables or global variables that are visible to all the projects in OSB?? If yes,the how can they b used??

    OSB is stateless and can not remember variables outside a running process instance.
    However you can have a solution similar to global/project level variables if they are static.
    What you can do is create an XSL or XQuery with your variables defined as elements in the XML and inside Proxy service if you need to refer to these variables just call that XQuery/XSLT for that element.
    A use case where this scenario can be used is for defining log levels. You can have a config XQ for each project and define the value of log level element for each project in that XQuery. Inside a Proxy service just call this XQ and fetch the LogLevel and log accordingly. This is also useful in migrating between dev/test/production environments. You can have different values of LogLevel in the XQ in different environments so that you dont need to change the code in proxy service when you move from one environment to other and also you dont need to change in each and every proxy if you need to change the level of logging.

  • What is the best way to define constants in SOA ?

    Hi,
    What is the best way to define constants in SOA/BPEL ?

    I want to define at composite level. I have several BPELs in my composite. I have lot of Status and some other codes I need to check/compare/assign in assign activity and xslt transformations
    Ii can use BPEL preferences , but they only applies to that particular BPEL. I want to define all my codes in one place at composite level.
    Thanks
    --Sreeny
    Edited by: sreeny on May 29, 2012 8:59 AM

  • Best Practices for Defining NDS Java Projects...

    We are doing a Proof of Concept on using NDS to develop non-SAP Java applications.  We are attempting to determine if we can replace our current Java development tools with NDS/WAS.
    We are struggling with SAP's terminology and "plumbing" for setting up/defining Java projects.  For example, what is and when do you define Tracks, Software Components, Development Components, etc.  All of these terms are totally foreign to us and do not relate to our current Java environment (at least not that we can see).  We are also struggling with how the DTR and activities tie in to those components.
    If any one has defined best practices for setting up Java projects or has struggled with and overcome these same issues, please provide us with some guidance.  This is a very frustrating and time-consuming issue for us.
    Thank you!!

    Hi Peggy,
    In Component Model we divide software projects into small components.Components can use other components in well defined manner.
    A development object is a part of a component that can be changed or developed in some way; it provides the component with a certain part of its functionality. A development object may be a Java class, a Web Dynpro view, a table definition, a JSP page, and so on. Development objects are always stored as “sources” in a repository.
    A development component can be defined as a frame shared by a number of objects, which are part of the software.
    Software components combine components (DCs) to larger units for delivery and deployment.
    A track comprises configurations and runtime systems required for developing software component versions.It ensures stable states of deliverables used by subsequent tracks.
    The Design Time Repository is for versioning source code management. Distributed development of software in teams. Transport and replication of sources.
    You can also find lot of support in SDN for the above concepts with tutorials.
    Refer this Link for a overview on Java development Infrastructure(JDI)
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/java development infrastructure jdi overview.pdf
    To understand further
    Working with Net Weaver Development Infrastructure :
    http://help.sap.com/saphelp_nw04/helpdata/en/03/f6bc3d42f46c33e10000000a11405a/content.htm
    In the above link you can find all the concepts clearly explained.You can also find the required tutorials for development.
    Regards,
    Vijith

  • How to use the static lib of berkeleydb in VC6?

    I know there is a libdb45s.lib. But when I try to link my project to it, VC6 reports many errors. Even the getting start examples cannot link correctly. The documents coming with berkeley db do not tell me how to link project to the lib, no matter static or dynamic.
    Could anyone tell me how to use the static lib libdb45s.lib and how to link it properly?
    OS: Windows XP pro SP2
    IDE: Virsual C++ 6.0 sp6
    BDB: 4.5.20
    Here is what I have done to link the libdb45s.lib:
    1.Add BDB related diretorys to VC6 link/lib dirs
    2.Add #include <db.c> to my .cpp file, I use the C API
    3.Change Project Options
    Link-> Libs/Objects-> add "libdb45s.lib"
    C/C++-> code generation-> Use Run Time Library-> MutiThreaded
    Link-> Ignore Library-> MSVCRT
    4.Build, here is the output, hope it would be some help:
    --------------------Configuration: wordseg - Win32
    Release--------------------
    Linking...
    LINK : warning LNK4049: locally defined symbol
    "_fflush" imported
    LINK : warning LNK4049: locally defined symbol "__iob"
    imported
    LINK : warning LNK4049: locally defined symbol
    "__errno" imported
    LINK : warning LNK4049: locally defined symbol
    "_malloc" imported
    LINK : warning LNK4049: locally defined symbol
    "_realloc" imported
    LINK : warning LNK4049: locally defined symbol "_free"
    imported
    LINK : warning LNK4049: locally defined symbol
    "_fclose" imported
    LINK : warning LNK4049: locally defined symbol
    "_fopen" imported
    LINK : warning LNK4049: locally defined symbol
    "__pctype" imported
    LINK : warning LNK4049: locally defined symbol
    "___mb_cur_max" imported
    LINK : warning LNK4049: locally defined symbol
    "__isctype" imported
    LINK : warning LNK4049: locally defined symbol
    "_strchr" imported
    LINK : warning LNK4049: locally defined symbol
    "_printf" imported
    LINK : warning LNK4049: locally defined symbol
    "_strncmp" imported
    LINK : warning LNK4049: locally defined symbol
    "_strncpy" imported
    LINK : warning LNK4049: locally defined symbol "_atol"
    imported
    LINK : warning LNK4049: locally defined symbol
    "_getenv" imported
    LINK : warning LNK4049: locally defined symbol
    "__open" imported
    LINK : warning LNK4049: locally defined symbol
    "__close" imported
    LINK : warning LNK4049: locally defined symbol
    "_strftime" imported
    LINK : warning LNK4049: locally defined symbol
    "_memmove" imported
    LINK : warning LNK4049: locally defined symbol
    "_strtoul" imported
    LINK : warning LNK4049: locally defined symbol
    "_fwrite" imported
    LINK : warning LNK4049: locally defined symbol
    "_fgetc" imported
    LINK : warning LNK4049: locally defined symbol
    "_strtol" imported
    libdb45s.lib(db_err.obj) : error LNK2001: unresolved
    external symbol __imp__strerror
    libdb45s.lib(db_getlong.obj) : error LNK2001:
    unresolved external symbol __imp__strerror
    libdb45s.lib(qam_verify.obj) : error LNK2001:
    unresolved external symbol __imp___snprintf
    libdb45s.lib(mp_mvcc.obj) : error LNK2001: unresolved
    external symbol __imp___snprintf
    libdb45s.lib(repmgr_util.obj) : error LNK2001:
    unresolved external symbol __imp___snprintf
    libdb45s.lib(repmgr_net.obj) : error LNK2001:
    unresolved external symbol __imp___snprintf
    libdb45s.lib(env_region.obj) : error LNK2001:
    unresolved external symbol __imp___snprintf
    libdb45s.lib(log_put.obj) : error LNK2001: unresolved
    external symbol __imp___snprintf
    libdb45s.lib(qam_files.obj) : error LNK2001:
    unresolved external symbol __imp___snprintf
    libdb45s.lib(db.obj) : error LNK2001: unresolved
    external symbol __imp___snprintf
    libdb45s.lib(db_err.obj) : error LNK2001: unresolved
    external symbol __imp___snprintf
    libdb45s.lib(db_pr.obj) : error LNK2001: unresolved
    external symbol __imp___snprintf
    libdb45s.lib(env_failchk.obj) : error LNK2001:
    unresolved external symbol __imp___snprintf
    libdb45s.lib(env_register.obj) : error LNK2001:
    unresolved external symbol __imp___snprintf
    libdb45s.lib(db_err.obj) : error LNK2001: unresolved
    external symbol __imp___vsnprintf
    libdb45s.lib(log_debug.obj) : error LNK2001:
    unresolved external symbol __imp___vsnprintf
    libdb45s.lib(db_err.obj) : error LNK2001: unresolved
    external symbol __imp__vfprintf
    libdb45s.lib(db_err.obj) : error LNK2001: unresolved
    external symbol __imp__fprintf
    libdb45s.lib(db_pr.obj) : error LNK2001: unresolved
    external symbol __imp__fprintf
    libdb45s.lib(db_getlong.obj) : error LNK2001:
    unresolved external symbol __imp__fprintf
    libdb45s.lib(os_errno.obj) : error LNK2001: unresolved
    external symbol __imp__WSASetLastError@4
    libdb45s.lib(repmgr_net.obj) : error LNK2001:
    unresolved external symbol __imp__WSAGetLastError@0
    libdb45s.lib(os_errno.obj) : error LNK2001: unresolved
    external symbol __imp__WSAGetLastError@0
    libdb45s.lib(repmgr_method.obj) : error LNK2001:
    unresolved external symbol __imp__WSAGetLastError@0
    libdb45s.lib(repmgr_windows.obj) : error LNK2001:
    unresolved external symbol __imp__WSAGetLastError@0
    libdb45s.lib(repmgr_sel.obj) : error LNK2001:
    unresolved external symbol __imp__WSAGetLastError@0
    libdb45s.lib(env_open.obj) : error LNK2001: unresolved
    external symbol __imp__strncat
    libdb45s.lib(mut_win32.obj) : error LNK2001:
    unresolved external symbol __imp___getpid
    libdb45s.lib(os_pid.obj) : error LNK2001: unresolved
    external symbol __imp___getpid
    libdb45s.lib(txn_chkpt.obj) : error LNK2001:
    unresolved external symbol __imp__time
    libdb45s.lib(env_stat.obj) : error LNK2001: unresolved
    external symbol __imp__time
    libdb45s.lib(rep_record.obj) : error LNK2001:
    unresolved external symbol __imp__time
    libdb45s.lib(rep_backup.obj) : error LNK2001:
    unresolved external symbol __imp__time
    libdb45s.lib(env_recover.obj) : error LNK2001:
    unresolved external symbol __imp__time
    libdb45s.lib(txn_region.obj) : error LNK2001:
    unresolved external symbol __imp__time
    libdb45s.lib(log.obj) : error LNK2001: unresolved
    external symbol __imp__time
    libdb45s.lib(rep_region.obj) : error LNK2001:
    unresolved external symbol __imp__time
    libdb45s.lib(db_stati.obj) : error LNK2001: unresolved
    external symbol __imp__time
    libdb45s.lib(rep_util.obj) : error LNK2001: unresolved
    external symbol __imp__time
    libdb45s.lib(env_region.obj) : error LNK2001:
    unresolved external symbol __imp__time
    libdb45s.lib(txn.obj) : error LNK2001: unresolved
    external symbol __imp__time
    libdb45s.lib(db_idspace.obj) : error LNK2001:
    unresolved external symbol __imp__qsort
    libdb45s.lib(log_archive.obj) : error LNK2001:
    unresolved external symbol __imp__qsort
    libdb45s.lib(db_join.obj) : error LNK2001: unresolved
    external symbol __imp__qsort
    libdb45s.lib(mp_mvcc.obj) : error LNK2001: unresolved
    external symbol __imp__qsort
    libdb45s.lib(db_meta.obj) : error LNK2001: unresolved
    external symbol __imp__qsort
    libdb45s.lib(lock_list.obj) : error LNK2001:
    unresolved external symbol __imp__qsort
    libdb45s.lib(mp_sync.obj) : error LNK2001: unresolved
    external symbol __imp__qsort
    libdb45s.lib(txn_stat.obj) : error LNK2001: unresolved
    external symbol __imp__qsort
    libdb45s.lib(rep_record.obj) : error LNK2001:
    unresolved external symbol __imp__qsort
    libdb45s.lib(os_config.obj) : error LNK2001:
    unresolved external symbol __imp__wcscmp
    libdb45s.lib(env_config.obj) : error LNK2001:
    unresolved external symbol __imp__fgets
    libdb45s.lib(repmgr_method.obj) : error LNK2001:
    unresolved external symbol __imp__gethostname@8
    libdb45s.lib(os_open.obj) : error LNK2001: unresolved
    external symbol __imp___snwprintf
    libdb45s.lib(os_map.obj) : error LNK2001: unresolved
    external symbol __imp___snwprintf
    libdb45s.lib(os_unlink.obj) : error LNK2001:
    unresolved external symbol __imp___snwprintf
    libdb45s.lib(os_dir.obj) : error LNK2001: unresolved
    external symbol __imp___snwprintf
    libdb45s.lib(os_map.obj) : error LNK2001: unresolved
    external symbol __imp__wcsrchr
    libdb45s.lib(log_archive.obj) : error LNK2001:
    unresolved external symbol __imp___getcwd
    libdb45s.lib(lock_stat.obj) : error LNK2001:
    unresolved external symbol __imp__localtime
    libdb45s.lib(qam_files.obj) : error LNK2001:
    unresolved external symbol __imp__strrchr
    libdb45s.lib(ctime.obj) : error LNK2001: unresolved
    external symbol __imp__ctime
    libdb45s.lib(os_clock.obj) : error LNK2001: unresolved
    external symbol __imp___ftime
    libdb45s.lib(os_uid.obj) : error LNK2001: unresolved
    external symbol __imp__rand
    libdb45s.lib(os_uid.obj) : error LNK2001: unresolved
    external symbol __imp__srand
    libdb45s.lib(repmgr_msg.obj) : error LNK2001:
    unresolved external symbol __imp__ntohs@4
    libdb45s.lib(repmgr_windows.obj) : error LNK2001:
    unresolved external symbol __imp__ioctlsocket@12
    libdb45s.lib(repmgr_windows.obj) : error LNK2001:
    unresolved external symbol __imp__WSACleanup@0
    libdb45s.lib(repmgr_net.obj) : error LNK2001:
    unresolved external symbol __imp__WSACleanup@0
    libdb45s.lib(repmgr_windows.obj) : error LNK2001:
    unresolved external symbol __imp__WSAStartup@8
    libdb45s.lib(repmgr_windows.obj) : error LNK2001:
    unresolved external symbol __imp__WSASend@28
    libdb45s.lib(repmgr_windows.obj) : error LNK2001:
    unresolved external symbol __imp__WSARecv@28
    libdb45s.lib(repmgr_windows.obj) : error LNK2001:
    unresolved external symbol
    __imp__WSAEnumNetworkEvents@12
    libdb45s.lib(repmgr_windows.obj) : error LNK2001:
    unresolved external symbol
    __imp__WSAWaitForMultipleEvents@20
    libdb45s.lib(repmgr_windows.obj) : error LNK2001:
    unresolved external symbol __imp__WSAEventSelect@12
    libdb45s.lib(repmgr_sel.obj) : error LNK2001:
    unresolved external symbol __imp__WSAEventSelect@12
    libdb45s.lib(repmgr_net.obj) : error LNK2001:
    unresolved external symbol __imp__WSAEventSelect@12
    libdb45s.lib(repmgr_windows.obj) : error LNK2001:
    unresolved external symbol __imp__WSACreateEvent@0
    libdb45s.lib(repmgr_sel.obj) : error LNK2001:
    unresolved external symbol __imp__WSACreateEvent@0
    libdb45s.lib(repmgr_sel.obj) : error LNK2001:
    unresolved external symbol __imp__WSACloseEvent@4
    libdb45s.lib(repmgr_net.obj) : error LNK2001:
    unresolved external symbol __imp__WSACloseEvent@4
    libdb45s.lib(repmgr_sel.obj) : error LNK2001:
    unresolved external symbol __imp__closesocket@4
    libdb45s.lib(repmgr_net.obj) : error LNK2001:
    unresolved external symbol __imp__closesocket@4
    libdb45s.lib(repmgr_sel.obj) : error LNK2001:
    unresolved external symbol __imp__accept@12
    libdb45s.lib(repmgr_sel.obj) : error LNK2001:
    unresolved external symbol __imp__connect@12
    libdb45s.lib(repmgr_sel.obj) : error LNK2001:
    unresolved external symbol __imp__socket@12
    libdb45s.lib(repmgr_net.obj) : error LNK2001:
    unresolved external symbol __imp__socket@12
    libdb45s.lib(repmgr_sel.obj) : error LNK2001:
    unresolved external symbol __imp__htonl@4
    libdb45s.lib(repmgr_net.obj) : error LNK2001:
    unresolved external symbol __imp__htonl@4
    libdb45s.lib(getaddrinfo.obj) : error LNK2001:
    unresolved external symbol __imp__htonl@4
    libdb45s.lib(repmgr_sel.obj) : error LNK2001:
    unresolved external symbol __imp__ntohl@4
    libdb45s.lib(repmgr_sel.obj) : error LNK2001:
    unresolved external symbol __imp__send@16
    libdb45s.lib(repmgr_util.obj) : error LNK2001:
    unresolved external symbol __imp__htons@4
    libdb45s.lib(getaddrinfo.obj) : error LNK2001:
    unresolved external symbol __imp__htons@4
    libdb45s.lib(repmgr_net.obj) : error LNK2001:
    unresolved external symbol __imp__listen@8
    libdb45s.lib(repmgr_net.obj) : error LNK2001:
    unresolved external symbol __imp__bind@12
    libdb45s.lib(repmgr_net.obj) : error LNK2001:
    unresolved external symbol __imp__setsockopt@20
    libdb45s.lib(getaddrinfo.obj) : error LNK2001:
    unresolved external symbol __imp__gethostbyname@4
    libdb45s.lib(getaddrinfo.obj) : error LNK2001:
    unresolved external symbol __imp__inet_addr@4
    Release/wordseg.exe : fatal error LNK1120: 47
    unresolved externals
    Error executing link.exe.
    wordseg.exe - 100 error(s), 25 warning(s)

    After adding MsWSock.Lib, WSock32.Lib, build returns following errors:
    (error count reduced from 100 to 71)
    --------------------Configuration: wordsegzjp - Win32 Release--------------------
    Compiling...
    main.cpp
    Linking...
    LINK : warning LNK4049: locally defined symbol "_fflush" imported
    LINK : warning LNK4049: locally defined symbol "__iob" imported
    LINK : warning LNK4049: locally defined symbol "_malloc" imported
    LINK : warning LNK4049: locally defined symbol "_realloc" imported
    LINK : warning LNK4049: locally defined symbol "_free" imported
    LINK : warning LNK4049: locally defined symbol "_fclose" imported
    LINK : warning LNK4049: locally defined symbol "_fopen" imported
    LINK : warning LNK4049: locally defined symbol "__pctype" imported
    LINK : warning LNK4049: locally defined symbol "___mb_cur_max" imported
    LINK : warning LNK4049: locally defined symbol "__isctype" imported
    LINK : warning LNK4049: locally defined symbol "_strchr" imported
    LINK : warning LNK4049: locally defined symbol "_printf" imported
    LINK : warning LNK4049: locally defined symbol "_strncmp" imported
    LINK : warning LNK4049: locally defined symbol "_strncpy" imported
    LINK : warning LNK4049: locally defined symbol "_atol" imported
    LINK : warning LNK4049: locally defined symbol "_getenv" imported
    LINK : warning LNK4049: locally defined symbol "__open" imported
    LINK : warning LNK4049: locally defined symbol "__close" imported
    LINK : warning LNK4049: locally defined symbol "_strftime" imported
    LINK : warning LNK4049: locally defined symbol "_memmove" imported
    LINK : warning LNK4049: locally defined symbol "_strtoul" imported
    LINK : warning LNK4049: locally defined symbol "_fwrite" imported
    LINK : warning LNK4049: locally defined symbol "_fgetc" imported
    LINK : warning LNK4049: locally defined symbol "_strtol" imported
    libdb45s.lib(db_err.obj) : error LNK2001: unresolved external symbol __imp__strerror
    libdb45s.lib(db_getlong.obj) : error LNK2001: unresolved external symbol __imp__strerror
    libdb45s.lib(qam_verify.obj) : error LNK2001: unresolved external symbol __imp___snprintf
    libdb45s.lib(mp_mvcc.obj) : error LNK2001: unresolved external symbol __imp___snprintf
    libdb45s.lib(repmgr_util.obj) : error LNK2001: unresolved external symbol __imp___snprintf
    libdb45s.lib(repmgr_net.obj) : error LNK2001: unresolved external symbol __imp___snprintf
    libdb45s.lib(env_region.obj) : error LNK2001: unresolved external symbol __imp___snprintf
    libdb45s.lib(log_put.obj) : error LNK2001: unresolved external symbol __imp___snprintf
    libdb45s.lib(qam_files.obj) : error LNK2001: unresolved external symbol __imp___snprintf
    libdb45s.lib(db.obj) : error LNK2001: unresolved external symbol __imp___snprintf
    libdb45s.lib(db_err.obj) : error LNK2001: unresolved external symbol __imp___snprintf
    libdb45s.lib(db_pr.obj) : error LNK2001: unresolved external symbol __imp___snprintf
    libdb45s.lib(env_failchk.obj) : error LNK2001: unresolved external symbol __imp___snprintf
    libdb45s.lib(env_register.obj) : error LNK2001: unresolved external symbol __imp___snprintf
    libdb45s.lib(db_err.obj) : error LNK2001: unresolved external symbol __imp___vsnprintf
    libdb45s.lib(log_debug.obj) : error LNK2001: unresolved external symbol __imp___vsnprintf
    libdb45s.lib(db_err.obj) : error LNK2001: unresolved external symbol __imp__vfprintf
    libdb45s.lib(db_err.obj) : error LNK2001: unresolved external symbol __imp__fprintf
    libdb45s.lib(db_pr.obj) : error LNK2001: unresolved external symbol __imp__fprintf
    libdb45s.lib(db_getlong.obj) : error LNK2001: unresolved external symbol __imp__fprintf
    libdb45s.lib(os_errno.obj) : error LNK2001: unresolved external symbol __imp___errno
    libdb45s.lib(env_open.obj) : error LNK2001: unresolved external symbol __imp__strncat
    libdb45s.lib(mut_win32.obj) : error LNK2001: unresolved external symbol __imp___getpid
    libdb45s.lib(os_pid.obj) : error LNK2001: unresolved external symbol __imp___getpid
    libdb45s.lib(txn_chkpt.obj) : error LNK2001: unresolved external symbol __imp__time
    libdb45s.lib(env_stat.obj) : error LNK2001: unresolved external symbol __imp__time
    libdb45s.lib(rep_record.obj) : error LNK2001: unresolved external symbol __imp__time
    libdb45s.lib(rep_backup.obj) : error LNK2001: unresolved external symbol __imp__time
    libdb45s.lib(env_recover.obj) : error LNK2001: unresolved external symbol __imp__time
    libdb45s.lib(txn_region.obj) : error LNK2001: unresolved external symbol __imp__time
    libdb45s.lib(log.obj) : error LNK2001: unresolved external symbol __imp__time
    libdb45s.lib(rep_region.obj) : error LNK2001: unresolved external symbol __imp__time
    libdb45s.lib(db_stati.obj) : error LNK2001: unresolved external symbol __imp__time
    libdb45s.lib(rep_util.obj) : error LNK2001: unresolved external symbol __imp__time
    libdb45s.lib(env_region.obj) : error LNK2001: unresolved external symbol __imp__time
    libdb45s.lib(txn.obj) : error LNK2001: unresolved external symbol __imp__time
    libdb45s.lib(db_idspace.obj) : error LNK2001: unresolved external symbol __imp__qsort
    libdb45s.lib(log_archive.obj) : error LNK2001: unresolved external symbol __imp__qsort
    libdb45s.lib(db_join.obj) : error LNK2001: unresolved external symbol __imp__qsort
    libdb45s.lib(mp_mvcc.obj) : error LNK2001: unresolved external symbol __imp__qsort
    libdb45s.lib(db_meta.obj) : error LNK2001: unresolved external symbol __imp__qsort
    libdb45s.lib(lock_list.obj) : error LNK2001: unresolved external symbol __imp__qsort
    libdb45s.lib(mp_sync.obj) : error LNK2001: unresolved external symbol __imp__qsort
    libdb45s.lib(txn_stat.obj) : error LNK2001: unresolved external symbol __imp__qsort
    libdb45s.lib(rep_record.obj) : error LNK2001: unresolved external symbol __imp__qsort
    libdb45s.lib(os_config.obj) : error LNK2001: unresolved external symbol __imp__wcscmp
    libdb45s.lib(env_config.obj) : error LNK2001: unresolved external symbol __imp__fgets
    libdb45s.lib(os_open.obj) : error LNK2001: unresolved external symbol __imp___snwprintf
    libdb45s.lib(os_map.obj) : error LNK2001: unresolved external symbol __imp___snwprintf
    libdb45s.lib(os_unlink.obj) : error LNK2001: unresolved external symbol __imp___snwprintf
    libdb45s.lib(os_dir.obj) : error LNK2001: unresolved external symbol __imp___snwprintf
    libdb45s.lib(os_map.obj) : error LNK2001: unresolved external symbol __imp__wcsrchr
    libdb45s.lib(log_archive.obj) : error LNK2001: unresolved external symbol __imp___getcwd
    libdb45s.lib(lock_stat.obj) : error LNK2001: unresolved external symbol __imp__localtime
    libdb45s.lib(qam_files.obj) : error LNK2001: unresolved external symbol __imp__strrchr
    libdb45s.lib(ctime.obj) : error LNK2001: unresolved external symbol __imp__ctime
    libdb45s.lib(os_clock.obj) : error LNK2001: unresolved external symbol __imp___ftime
    libdb45s.lib(os_uid.obj) : error LNK2001: unresolved external symbol __imp__rand
    libdb45s.lib(os_uid.obj) : error LNK2001: unresolved external symbol __imp__srand
    libdb45s.lib(repmgr_windows.obj) : error LNK2001: unresolved external symbol __imp__WSASend@28
    libdb45s.lib(repmgr_windows.obj) : error LNK2001: unresolved external symbol __imp__WSARecv@28
    libdb45s.lib(repmgr_windows.obj) : error LNK2001: unresolved external symbol __imp__WSAEnumNetworkEvents@12
    libdb45s.lib(repmgr_windows.obj) : error LNK2001: unresolved external symbol __imp__WSAWaitForMultipleEvents@20
    libdb45s.lib(repmgr_windows.obj) : error LNK2001: unresolved external symbol __imp__WSAEventSelect@12
    libdb45s.lib(repmgr_sel.obj) : error LNK2001: unresolved external symbol __imp__WSAEventSelect@12
    libdb45s.lib(repmgr_net.obj) : error LNK2001: unresolved external symbol __imp__WSAEventSelect@12
    libdb45s.lib(repmgr_windows.obj) : error LNK2001: unresolved external symbol __imp__WSACreateEvent@0
    libdb45s.lib(repmgr_sel.obj) : error LNK2001: unresolved external symbol __imp__WSACreateEvent@0
    libdb45s.lib(repmgr_sel.obj) : error LNK2001: unresolved external symbol __imp__WSACloseEvent@4
    libdb45s.lib(repmgr_net.obj) : error LNK2001: unresolved external symbol __imp__WSACloseEvent@4
    Release/wordsegzjp.exe : fatal error LNK1120: 28 unresolved externals
    Error executing link.exe.
    wordsegzjp.exe - 71 error(s), 24 warning(s)

Maybe you are looking for

  • Report S_ALR_87011964 Asset balances does not match AW01N

    In march 08, useful life of one asset is reduced to 4.4 years effective Mar 08. Accordingly - system has revised Plan Deprn figures from march 08 to through Dec 08 & planned book value is nil as at Dec 08(These calculationa are perfect). Then Deprn r

  • Freight Condition not getting copied from order to billing

    Hi, Here at my clients place, i have created new condition type for freight(which will be calculated after excise duty and VAT).This conditon type should not increase the order value but increase tax amount in sales order item level. For this i have

  • HfmCopyAppCmd.exe

    Hi, Can any one help me on how to execute the HfmCopyAppCmd.exe. I prepared the soure and the destination UDL and the applications. Now how should I run. Do I need to create a batch file with HfmCopyAppCmd.exe source and dest. information and save it

  • Can you add folders to your e-mail on a driod turbo?

    I have  Driod turbo, and I have issues with getting my e-mail set up to mirror what I have for same on my PC (I cannot get the folders I have set up on the PC, to show on my phone e-mail)_.

  • My bookmarks in menu does/nt have"bookmark this page"

    I/m usingFF3.6.16 and in my drop down i have no "bookmark this page" where is it gone i can use another pc with win xp and it/s there but not this one is it because of the operating system it/s linux farago